admin: fix pending demandes
fetch email with map
This commit is contained in:
parent
53f420c748
commit
50fcd24b46
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ module Manager
|
|||
def pending_demandes
|
||||
already_approved_emails = Administrateur.eager(:user)
|
||||
.where(users: { email: demandes.map { |d| d[:email] } })
|
||||
.pluck(:email)
|
||||
.map(&:email)
|
||||
|
||||
demandes.reject { |demande| already_approved_emails.include?(demande[:email]) }
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue