fix door path
All checks were successful
Build and push Doorman UI / API / docker (push) Successful in 1m22s

This commit is contained in:
Martin Dimitrov 2024-10-26 14:55:46 -07:00
parent 76c048b5c9
commit cf63b06a95

View File

@ -26,7 +26,7 @@ exports.handler = async function(context, event, callback) {
let configQuery = `config=${encodeURIComponent(JSON.stringify(config))}`; let configQuery = `config=${encodeURIComponent(JSON.stringify(config))}`;
// let user know someone is currently buzzing, and allow unlock by discord user // let user know someone is currently buzzing, and allow unlock by discord user
let msg = `🔔 Someone is dialing right now @ Door "${config.door}" [Click to unlock](${context.DOORMAN_URL}/api/door/auth?door=buzzer&key=`; let msg = `🔔 Someone is dialing right now @ Door "${config.door}" [Click to unlock](${context.DOORMAN_URL}/api/door/auth?door=${config.door}&key=`;
config.discordUsers.forEach((u) => { config.discordUsers.forEach((u) => {
// unlock me by discord userid // unlock me by discord userid
fetch(context.DOORMAN_URL + `/api/door/notify?discordUser=${u}&msg=${encodeURIComponent(msg + u + ')')}`); fetch(context.DOORMAN_URL + `/api/door/notify?discordUser=${u}&msg=${encodeURIComponent(msg + u + ')')}`);