|
@@ -125,8 +125,6 @@ module.exports = (crowi) => {
|
|
|
|
|
|
|
|
for (const user of userList) {
|
|
for (const user of userList) {
|
|
|
try {
|
|
try {
|
|
|
- // eslint-disable-next-line no-await-in-loop
|
|
|
|
|
- await User.updateIsInvitationEmailSended(user.user.id);
|
|
|
|
|
// eslint-disable-next-line no-await-in-loop
|
|
// eslint-disable-next-line no-await-in-loop
|
|
|
await mailService.send({
|
|
await mailService.send({
|
|
|
to: user.email,
|
|
to: user.email,
|
|
@@ -139,6 +137,8 @@ module.exports = (crowi) => {
|
|
|
appTitle,
|
|
appTitle,
|
|
|
},
|
|
},
|
|
|
});
|
|
});
|
|
|
|
|
+ // eslint-disable-next-line no-await-in-loop
|
|
|
|
|
+ await User.updateIsInvitationEmailSended(user.user.id);
|
|
|
}
|
|
}
|
|
|
catch (err) {
|
|
catch (err) {
|
|
|
logger.error(err);
|
|
logger.error(err);
|