Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
diegosteiner committed Dec 3, 2023
2 parents 570eb4c + 11994e8 commit b3bb091
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/controllers/manage/notifications_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ class NotificationsController < BaseController
before_action :set_booking, only: %i[show]

def index
@notifications = @notifications.order(created_at: :DESC)
@notifications = @notifications.joins(:booking).where(booking: { organisation: current_organisation })
.order(created_at: :DESC)
@notifications = @notifications.unsent if @booking.blank?
respond_with :manage, @notifications
end
Expand Down

0 comments on commit b3bb091

Please sign in to comment.