Skip to content

Commit

Permalink
Prevent from creating create report notifications for the RSS channel
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardoj authored and danidoni committed Sep 22, 2023
1 parent a59cbdf commit a031193
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/api/app/services/notification_service/notifier.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ def call
return unless @event.eventtype.in?(EVENTS_TO_NOTIFY)

CHANNELS.each do |channel|
next if channel == :rss && @event.eventtype == 'Event::CreateReport'

@event.subscriptions(channel).each do |subscription|
create_notification_per_subscription(subscription, channel)
end
Expand Down

0 comments on commit a031193

Please sign in to comment.