|
|
@@ -617,6 +617,11 @@ module.exports = function(crowi) {
|
|
|
|
|
|
const User = this;
|
|
|
const createdUserList = [];
|
|
|
+
|
|
|
+ // The user is exists
|
|
|
+ const existingUserList = await User.find({ email: { $in: emailList }, userStatus: { $ne: STATUS_DELETED } });
|
|
|
+ const existingEmailList = existingUserList.map((user) => { return user.email });
|
|
|
+
|
|
|
// TODO GW-206 move to anothor function
|
|
|
// const mailer = crowi.getMailer();
|
|
|
|