From 557dbc89cfe79dcb6cda2a8f87999657369043e5 Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Wed, 7 Sep 2022 23:27:20 +0100 Subject: [PATCH] lowercase response emails --- packages/worker/src/sdk/users/users.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/worker/src/sdk/users/users.ts b/packages/worker/src/sdk/users/users.ts index be3f565d42..c1e492fb6a 100644 --- a/packages/worker/src/sdk/users/users.ts +++ b/packages/worker/src/sdk/users/users.ts @@ -316,7 +316,7 @@ const searchExistingEmails = async (emails: string[]) => { const existingAccounts = await getExistingAccounts(emails) matchedEmails.push(...existingAccounts.map(account => account.email)) - return [...new Set(matchedEmails)] + return [...new Set(matchedEmails.map(email => email.toLowerCase()))] } export const bulkCreate = async (