remove log

This commit is contained in:
Peter Clement 2022-11-02 10:35:04 +00:00
parent d034800c76
commit d1f9b8048c
1 changed files with 1 additions and 2 deletions

View File

@ -569,13 +569,12 @@ export const invite = async (
successful: [], successful: [],
unsuccessful: [], unsuccessful: [],
} }
console.log(users)
const matchedEmails = await searchExistingEmails(users.map(u => u.email)) const matchedEmails = await searchExistingEmails(users.map(u => u.email))
const newUsers = [] const newUsers = []
// separate duplicates from new users // separate duplicates from new users
for (let user of users) { for (let user of users) {
console.log(user)
if (matchedEmails.includes(user.email)) { if (matchedEmails.includes(user.email)) {
response.unsuccessful.push({ email: user.email, reason: "Unavailable" }) response.unsuccessful.push({ email: user.email, reason: "Unavailable" })
} else { } else {