From 47a45b80003603380e641308488abf2975227ed1 Mon Sep 17 00:00:00 2001 From: Finn Date: Mon, 8 Apr 2024 21:46:46 -0700 Subject: [PATCH] fix slot lookup --- zwavejs/client.go | 1 + 1 file changed, 1 insertion(+) diff --git a/zwavejs/client.go b/zwavejs/client.go index eb44689..85a87fb 100644 --- a/zwavejs/client.go +++ b/zwavejs/client.go @@ -175,6 +175,7 @@ func handleEvent(ctx context.Context, event Event) error { if event.Parameters.UserID > 0 { slot, err := queries.GetLockCodeBySlot(ctx, db.GetLockCodeBySlotParams{ Lock: lock.ID, + Slot: int64(event.Parameters.UserID), }) if err != nil { return fmt.Errorf("error getting code slot: %v", err)