From 829f9716490613c4942eb5ed60a89abbe628810a Mon Sep 17 00:00:00 2001 From: Antonio De Lucreziis Date: Sat, 7 Oct 2023 12:51:38 +0200 Subject: [PATCH] altro fix --- server/controllers/public.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } ] }}) }