itizawa 6 лет назад
Родитель
Сommit
129f7cffd4
1 измененных файлов с 0 добавлено и 5 удалено
  1. 0 5
      src/server/models/user.js

+ 0 - 5
src/server/models/user.js

@@ -667,11 +667,6 @@ module.exports = function(crowi) {
 
 
   userSchema.statics.sendEmailbyUserList = async function(userList) {
   userSchema.statics.sendEmailbyUserList = async function(userList) {
     const mailer = crowi.getMailer();
     const mailer = crowi.getMailer();
-
-    if (mailer == null) {
-      return debug('mailer setup is required');
-    }
-
     const appTitle = crowi.appService.getAppTitle();
     const appTitle = crowi.appService.getAppTitle();
 
 
     await Promise.all(userList.map(async(user) => {
     await Promise.all(userList.map(async(user) => {