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))
|
||||
.then(async (lock) => {
|
||||
const status = isLockOpen(lock) ? DoorStatus.OPEN: DoorStatus.CLOSED;
|
||||
const doorConfig: DoorConfig = ddbItemToJSON<DoorConfig>(lock);
|
||||
const doorConfig: DoorConfig = ddbItemToJSON<DoorConfig>(config);
|
||||
|
||||
// respond to UI
|
||||
response
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user