Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
robguthrie committed Jun 14, 2024
1 parent f816353 commit 44e75e1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/controllers/email_actions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,13 @@ def unfollow_discussion
end

def mark_discussion_as_read
GenericWorker.perform_async('DiscussionService', 'mark_as_read_simple_params', discussion.id, event.sequence_id, user.id)
GenericWorker.perform_async(
'DiscussionService',
'mark_as_read_simple_params',
discussion.id,
event.sequence_id || [],
user.id,
)
event.notifications.where(user: user).update_all(viewed: true)
respond_with_pixel
rescue ActiveRecord::RecordNotFound
Expand Down

0 comments on commit 44e75e1

Please sign in to comment.