Skip to content

Commit

Permalink
fix(bookings): prefix checked_in with bookings in sql (#279)
Browse files Browse the repository at this point in the history
  • Loading branch information
chillfox authored Jan 13, 2025
1 parent da6aeae commit 03a7129
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/placeos-models/booking.cr
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ module PlaceOS::Model
where(checked_in: check)
else
# checked_in defaults to false, so only checked out if checked_out_at is set
where("checked_out_at IS NOT NULL AND checked_in = ?", check)
where("checked_out_at IS NOT NULL AND bookings.checked_in = ?", check)
end
else
self
Expand Down

0 comments on commit 03a7129

Please sign in to comment.