Yuki Takei пре 5 година
родитељ
комит
0bc3e431fe
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/server/util/mailer.js

+ 1 - 1
src/server/util/mailer.js

@@ -94,7 +94,7 @@ module.exports = function(crowi) {
   }
   }
 
 
   async function send(config) {
   async function send(config) {
-    if (!mailer) {
+    if (mailer == null) {
       throw new Error('Mailer is not completed to set up. Please set up SMTP or AWS setting.');
       throw new Error('Mailer is not completed to set up. Please set up SMTP or AWS setting.');
     }
     }