fix door path
All checks were successful
Build and push Doorman UI / API / docker (push) Successful in 1m22s
All checks were successful
Build and push Doorman UI / API / docker (push) Successful in 1m22s
This commit is contained in:
parent
76c048b5c9
commit
cf63b06a95
@ -26,7 +26,7 @@ exports.handler = async function(context, event, callback) {
|
||||
let configQuery = `config=${encodeURIComponent(JSON.stringify(config))}`;
|
||||
|
||||
// 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) => {
|
||||
// unlock me by discord userid
|
||||
fetch(context.DOORMAN_URL + `/api/door/notify?discordUser=${u}&msg=${encodeURIComponent(msg + u + ')')}`);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user