Skip to content

Commit

Permalink
find each user
Browse files Browse the repository at this point in the history
  • Loading branch information
oblakeerickson committed Sep 10, 2024
1 parent 6863051 commit df8fc03
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plugin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -873,8 +873,7 @@ module ::DiscourseAssign
end

on(:group_destroyed) do |group, user_ids|
user_ids.each do |user_id|
user = User.find(user_id)
User.where(id: user_ids).find_each do |user|
user.notifications.for_assignment(group.assignments.select(:id)).destroy_all if user
end

Expand Down

0 comments on commit df8fc03

Please sign in to comment.