diff --git a/server/controllers/public.js b/server/controllers/public.js index e19dc61e..750acc78 100644 --- a/server/controllers/public.js +++ b/server/controllers/public.js @@ -7,7 +7,7 @@ async function staffQuery(req) { matches.push({$match: { $or: [ { 'person.email': req.query.email }, - { 'person.alternativeEmail': req.query.email } + { 'person.alternativeEmails': req.query.email } ] }}) }