We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc18747 commit 704cc91Copy full SHA for 704cc91
1 file changed
src/backend/src/utils/design-review.utils.ts
@@ -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