Merge pull request #4752 from betagouv/dev

2020-02-06-01
This commit is contained in:
Keirua 2020-02-06 15:09:48 +01:00 committed by GitHub
commit 937cd9f275
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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