fix pending demandes

This commit is contained in:
Christophe Robillard 2020-02-05 18:19:05 +01:00
parent a8dd3888c1
commit 9fe005e4d7

View file

@ -48,7 +48,7 @@ module Manager
end
def pending_demandes
already_approved_emails = Administrateur.eager(:user)
already_approved_emails = Administrateur.eager_load(:user)
.where(users: { email: demandes.map { |d| d[:email] } })
.map(&:email)