fix(dossiers): exclude deleted dossiers from notifications

This commit is contained in:
Paul Chavard 2022-03-30 11:48:19 +02:00
parent 4ae88ac58d
commit a171ebb772

View file

@ -161,6 +161,7 @@ class Instructeur < ApplicationRecord
groupe_instructeur_ids = Dossier
.send(scope) # :en_cours or :termine (or any other Dossier scope)
.merge(followed_dossiers)
.visible_by_administration
.with_notifications
.select(:groupe_instructeur_id)