ryuichi-e пре 5 година
родитељ
комит
f3cb8c9e63
1 измењених фајлова са 4 додато и 0 уклоњено
  1. 4 0
      src/migrations/20200901034313-update-mail-transmission.js

+ 4 - 0
src/migrations/20200901034313-update-mail-transmission.js

@@ -18,6 +18,9 @@ module.exports = {
       key: 'mail:sesAccessKeyId',
     });
 
+    if (sesExist == null) {
+      return logger.info('Failed to migrate');
+    }
     if (sesExist.value != null) {
       await Config.create({
         ns: 'crowi',
@@ -34,6 +37,7 @@ module.exports = {
     }
 
     logger.info('Migration has successfully applied');
+
   },
 
   async down(db, client) {