fix slot lookup
This commit is contained in:
parent
054008eb1f
commit
47a45b8000
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue