fix info bug
This commit is contained in:
parent
524b55e439
commit
9a8e37824e
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user