diff --git a/packages/doorman-client/functions/buzzer-activated.js b/packages/doorman-client/functions/buzzer-activated.js index 4f27146..96ee908 100644 --- a/packages/doorman-client/functions/buzzer-activated.js +++ b/packages/doorman-client/functions/buzzer-activated.js @@ -42,7 +42,7 @@ async function notifyDiscord(context, msg, u, optionalJsonStr) { } async function notifyAllDiscord(context, config, msg, optionalJsonStr) { - return notifyDiscord(context, config.discordUsers.map(() => msg), config.discordUsers, config.discordUsers.map(() => optionalJsonStr).filter(Boolean)); + return notifyDiscord(context, config.discordUsers.map(() => msg), config.discordUsers, config.discordUsers.map(() => optionalJsonStr || "")); } function doorOpenTwiml(twiml, config) { @@ -139,8 +139,7 @@ exports.handler = async function(context, event, callback) { await notifyAllDiscord( context, config, - `📞 Somebody buzzed the door and it dialed through to fallback phone numbers @ Door "${config.door}"`, - undefined + `📞 Somebody buzzed the door and it dialed through to fallback phone numbers @ Door "${config.door}"` ); resolve(twiml); } else {