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)