Merge pull request #4749 from betagouv/fix-pending-demandes

fix pending demandes
This commit is contained in:
Pierre de La Morinerie 2020-02-05 18:31:16 +01:00 committed by GitHub
commit 9214476fc0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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)