avoid unnecessary db call

pull/11880/head
ulferts 2 years ago
parent 55d1ccc121
commit 780afef282
No known key found for this signature in database
GPG Key ID: A205708DE1284017
  1. 2
      app/workers/notifications/create_date_alerts_notifications_job/service.rb

@ -57,6 +57,8 @@ class Notifications::CreateDateAlertsNotificationsJob::Service
end
def mark_previous_notifications_as_read(user, work_packages, reason)
return if work_packages.empty?
Notification
.where(recipient: user,
reason:,

Loading…
Cancel
Save