fix slot lookup

This commit is contained in:
Finn 2024-04-08 21:46:46 -07:00
parent 054008eb1f
commit 47a45b8000

View file

@ -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)