@@ -64,7 +64,7 @@ export const sendSlackRequestedReviewNotification = async (
6464 const btnText = `View CR` ;
6565 const changeRequestLink = `https://finishlinebyner.com/change-requests/${ changeRequest . crId } ` ;
6666 const slackPingMessage = usersToSlackPings ( reviewers ) ;
67- const fullMsg = `${ slackPingMessage } Your review has been requested on CR #${ changeRequest . crId } !` ;
67+ const fullMsg = `${ slackPingMessage } Your review has been requested on CR #${ changeRequest . identifier } !` ;
6868
6969 const threads = await prisma . message_Info . findMany ( { where : { changeRequestId : changeRequest . crId } } ) ;
7070
@@ -173,15 +173,14 @@ export const sendSlackDesignReviewConfirmNotification = async (
173173 * @param team the teams of the cr to notify
174174 * @param message the message to send to the teams
175175 * @param crId the cr id
176- * @param budgetImpact the amount of budget requested for the cr
176+ * @param identifier the cr identifier
177177 * @returns the channelId and timestamp of the messages sent in slack
178178 */
179179export const sendSlackChangeRequestNotification = async (
180180 team : Team ,
181181 message : string ,
182182 crId : string ,
183- identifier : number ,
184- budgetImpact ?: number
183+ identifier : number
185184) : Promise < { channelId : string ; ts : string } [ ] > => {
186185 if ( process . env . NODE_ENV !== 'production' ) return [ ] ; // don't send msgs unless in prod
187186 const msgs : { channelId : string ; ts : string } [ ] = [ ] ;
@@ -191,16 +190,6 @@ export const sendSlackChangeRequestNotification = async (
191190 const notification = await sendMessage ( team . slackId , fullMsg , fullLink , btnText ) ;
192191 if ( notification ) msgs . push ( notification ) ;
193192
194- if ( budgetImpact && budgetImpact > 100 ) {
195- const importantNotification = await sendMessage (
196- process . env . SLACK_EBOARD_CHANNEL ! ,
197- `${ fullMsg } with $${ budgetImpact } requested` ,
198- fullLink ,
199- btnText
200- ) ;
201- if ( importantNotification ) msgs . push ( importantNotification ) ;
202- }
203-
204193 return msgs ;
205194} ;
206195
@@ -374,12 +363,12 @@ export const sendDRScheduledSlackNotif = async (
374363 }
375364} ;
376365
377- export const sendSlackCRReviewedNotification = async ( slackId : string , crId : string ) => {
366+ export const sendSlackCRReviewedNotification = async ( slackId : string , crId : string , identifier : number ) => {
378367 if ( process . env . NODE_ENV !== 'production' ) return ; // don't send msgs unless in prod
379368 const msgs = [ ] ;
380369 const fullMsg = `:tada: Your Change Request was just reviewed! Click the link to view! :tada:` ;
381370 const fullLink = `https://finishlinebyner.com/cr/${ crId } ` ;
382- const btnText = `View CR#${ crId } ` ;
371+ const btnText = `View CR#${ identifier } ` ;
383372 msgs . push ( sendMessage ( slackId , fullMsg , fullLink , btnText ) ) ;
384373
385374 return Promise . all ( msgs ) ;
@@ -390,6 +379,7 @@ export const sendSlackCRReviewedNotification = async (slackId: string, crId: str
390379 *
391380 * @param threads the threads of cr slack notifications to reply/react to
392381 * @param crId the cr id
382+ * @param identifier the cr identifier
393383 * @param approved is the cr approved
394384 */
395385export const sendSlackCRStatusToThread = async (
@@ -400,12 +390,13 @@ export const sendSlackCRStatusToThread = async (
400390 changeRequestId : string | null ;
401391 } [ ] ,
402392 crId : string ,
393+ identifier : number ,
403394 approved : boolean
404395) => {
405396 if ( process . env . NODE_ENV !== 'production' ) return ; // don't send msgs unless in prod
406397 const fullMsg = `This Change Request was ${ approved ? 'approved! :tada:' : 'denied.' } Click the link to view.` ;
407398 const fullLink = `https://finishlinebyner.com/cr/${ crId } ` ;
408- const btnText = `View CR#${ crId } ` ;
399+ const btnText = `View CR#${ identifier } ` ;
409400 try {
410401 if ( threads && threads . length !== 0 ) {
411402 const msgs = threads . map ( ( thread ) =>
0 commit comments