File tree 2 files changed +3
-5
lines changed
scripts/demo-email-notifications 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -274,7 +274,5 @@ module.exports = {
274
274
RESOURCE_BOOKING_EXPIRY_TIME : process . env . RESOURCE_BOOKING_EXPIRY_TIME || 'P21D' ,
275
275
// The Stripe
276
276
STRIPE_SECRET_KEY : process . env . STRIPE_SECRET_KEY ,
277
- CURRENCY : process . env . CURRENCY || 'usd' ,
278
- // The slack webhook url to send slack notifications
279
- SLACK_WEBHOOK_URL : process . env . SLACK_WEBHOOK_URL
277
+ CURRENCY : process . env . CURRENCY || 'usd'
280
278
}
Original file line number Diff line number Diff line change @@ -71,8 +71,8 @@ async function initConsumer () {
71
71
fs . writeFileSync ( `./out/${ notification . details . data . subject } -${ Date . now ( ) } .html` , email )
72
72
} )
73
73
for ( const notification of _ . filter ( message . payload . notifications , [ 'serviceId' , 'slack' ] ) ) {
74
- if ( config . SLACK_WEBHOOK_URL ) {
75
- await axios . post ( config . SLACK_WEBHOOK_URL , { text : notification . details . text , blocks : notification . details . blocks } )
74
+ if ( process . env . SLACK_WEBHOOK_URL ) {
75
+ await axios . post ( process . env . SLACK_WEBHOOK_URL , { text : notification . details . text , blocks : notification . details . blocks } )
76
76
}
77
77
}
78
78
}
You can’t perform that action at this time.
0 commit comments