Merge pull request #6740 from betagouv/fix-instructeur-daily-notifications
Correction de la requête de notification quotidienne des Instructeurs
This commit is contained in:
commit
78784d1c62
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@ class NotificationService
|
|||
class << self
|
||||
def send_instructeur_email_notification
|
||||
Instructeur
|
||||
.includes(assign_to: { procedure: :dossiers })
|
||||
.includes(assign_to: [:procedure])
|
||||
.where(assign_tos: { daily_email_notifications_enabled: true })
|
||||
.find_in_batches { |instructeurs| send_batch_of_instructeurs_email_notification(instructeurs) }
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue