1
0
Fork 0
mirror of synced 2024-06-28 11:00:55 +12:00

lowercase response emails

This commit is contained in:
Martin McKeaveney 2022-09-07 23:27:20 +01:00
parent 096da509d9
commit 010767bcfb

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 (