fix info bug
All checks were successful
Build and push image for doorman-homeassistant / docker (push) Successful in 26s
Build and push Doorman UI / API / docker (push) Successful in 1m28s
Build and push image for doorman-homeassistant / deploy-gitainer (push) Successful in 12s

This commit is contained in:
Martin Dimitrov 2024-12-10 21:10:33 -08:00
parent 524b55e439
commit 9a8e37824e

View File

@ -70,7 +70,7 @@ export const handler: ServerlessFunctionSignature<TwilioContext, InfoRequest> =
await client.send(getLockStatusCommand(door)) await client.send(getLockStatusCommand(door))
.then(async (lock) => { .then(async (lock) => {
const status = isLockOpen(lock) ? DoorStatus.OPEN: DoorStatus.CLOSED; const status = isLockOpen(lock) ? DoorStatus.OPEN: DoorStatus.CLOSED;
const doorConfig: DoorConfig = ddbItemToJSON<DoorConfig>(lock); const doorConfig: DoorConfig = ddbItemToJSON<DoorConfig>(config);
// respond to UI // respond to UI
response response