Skip to content

Commit

Permalink
fix next_reservation
Browse files Browse the repository at this point in the history
  • Loading branch information
nabeta committed Dec 15, 2024
1 parent 28a1c81 commit 101c098
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/reserve.rb
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def check_expired_at
end

def next_reservation
Reserve.waiting.find_by(manifestation_id: manifestation_id)
Reserve.waiting.where.not(id: id).find_by(manifestation_id: manifestation_id)
end

def send_message(sender = nil)
Expand Down

0 comments on commit 101c098

Please sign in to comment.