diff --git a/src/config.ts b/src/config.ts index 315601f..a37470e 100644 --- a/src/config.ts +++ b/src/config.ts @@ -21,7 +21,7 @@ const notifications = { carrier: process.env.PHONE_CARRIER ?? '', number: process.env.PHONE_NUMBER ?? '' }, - playSound: process.env.PLAY_SOUND ?? 'false', + playSound: process.env.PLAY_SOUND ?? '', pushover: { token: process.env.PUSHOVER_TOKEN, user: process.env.PUSHOVER_USER diff --git a/src/notification/notification.ts b/src/notification/notification.ts index 28feaaf..82a4c4f 100644 --- a/src/notification/notification.ts +++ b/src/notification/notification.ts @@ -32,7 +32,7 @@ export function sendNotification(cartUrl: string) { sendPushoverNotification(cartUrl); } - if (notifications.playSound === 'true') { + if (notifications.playSound) { playSound(); } }