@@ -226,7 +226,12 @@ export class NotificationsService {
226226 if ( shouldNotifyDiscord ) {
227227 const discordMessage = `Match status changed to **${ readableStatus } **. [View Match](${ matchUrl } )` ;
228228 const color = STATUS_COLORS [ newStatus ] ?? DISCORD_COLORS . GRAY ;
229- await this . sendDiscordMatchNotification ( title , discordMessage , color , null ) ;
229+ await this . sendDiscordMatchNotification (
230+ title ,
231+ discordMessage ,
232+ color ,
233+ null ,
234+ ) ;
230235 }
231236 return ;
232237 }
@@ -260,7 +265,8 @@ export class NotificationsService {
260265 entity_id : matchId ,
261266 } ) ;
262267
263- const notifyKey = `discord_notify_${ newStatus } ` as keyof typeof tournament ;
268+ const notifyKey =
269+ `discord_notify_${ newStatus } ` as keyof typeof tournament ;
264270 const shouldNotifyDiscord = await this . shouldSendDiscordNotification (
265271 tournament [ notifyKey ] as boolean | null | undefined ,
266272 `discord_match_notify_${ newStatus } ` ,
@@ -430,7 +436,9 @@ export class NotificationsService {
430436 }
431437
432438 private isValidDiscordWebhookUrl ( url : string ) : boolean {
433- return / ^ h t t p s : \/ \/ ( d i s c o r d \. c o m | d i s c o r d a p p \. c o m ) \/ a p i \/ w e b h o o k s \/ \d + \/ .+ $ / . test ( url ) ;
439+ return / ^ h t t p s : \/ \/ ( d i s c o r d \. c o m | d i s c o r d a p p \. c o m ) \/ a p i \/ w e b h o o k s \/ \d + \/ .+ $ / . test (
440+ url ,
441+ ) ;
434442 }
435443
436444 private formatRoleMentions (
@@ -449,7 +457,10 @@ export class NotificationsService {
449457 title : string ,
450458 message : string ,
451459 color : number ,
452- tournament ?: Pick < tournaments , "discord_webhook" | "discord_role_id" | "discord_notifications_enabled" > | null ,
460+ tournament ?: Pick <
461+ tournaments ,
462+ "discord_webhook" | "discord_role_id" | "discord_notifications_enabled"
463+ > | null ,
453464 ) {
454465 if ( tournament ?. discord_notifications_enabled === false ) {
455466 return ;
0 commit comments