Skip to content

Commit 704cc91

Browse files
committed
#2173-invited-fucntion
1 parent fc18747 commit 704cc91

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { sendMessage } from "../integrations/slack";
2+
3+
export const sendSlackCRReviewedNotification = async (slackId: string, designReviewId: string) => {
4+
if (process.env.NODE_ENV !== 'production') return; // don't send msgs unless in prod
5+
const msgs = [];
6+
const fullMsg = `:tada: You have been invited to a Design Review! Fill out your availability :tada:`;
7+
const fullLink = `https://finishlinebyner.com/design-reviews/${designReviewId}`;
8+
const btnText = `RSVP for Design Review: ${designReviewId}`;
9+
msgs.push(sendMessage(slackId, fullMsg, fullLink, btnText));
10+
11+
return Promise.all(msgs);
12+
};

0 commit comments

Comments
 (0)