1
0
Fork 0
mirror of synced 2024-07-04 22:11:23 +12:00

lowercase response emails

This commit is contained in:
Martin McKeaveney 2022-09-07 23:27:20 +01:00
parent 2991d05d5b
commit 557dbc89cf

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 (