Skip to content

Commit

Permalink
fix(bookings): [PPT-1835] booked desks showing up as available
Browse files Browse the repository at this point in the history
  • Loading branch information
chillfox committed Feb 6, 2025
1 parent b5fd3d5 commit 211fd03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/bookings.cr
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ class Bookings < Application
created_before: created_before, created_after: created_after, approved: approved, rejected: false, extension_data: extension_data, state: state,
department: department, event_id: event_id, ical_uid: ical_uid, limit: limit, offset: offset, permission: permission, link_ext: "booked")
asset_ids = [] of String
result.each { |b| asset_ids.concat(b.asset_ids) unless b.checked_in_at || b.deleted }
result.each { |b| asset_ids.concat(b.asset_ids) unless b.checked_out_at || b.deleted }
asset_ids.uniq!
end

Expand Down

0 comments on commit 211fd03

Please sign in to comment.