lowercase response emails

This commit is contained in:
Martin McKeaveney 2022-09-07 23:27:20 +01:00
parent 2991d05d5b
commit 557dbc89cf
1 changed files with 1 additions and 1 deletions

View File

@ -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 (