remove log
This commit is contained in:
parent
d034800c76
commit
d1f9b8048c
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue