Przeglądaj źródła

Call loadConfigs after import finishes

Taichi Masuyama 3 lat temu
rodzic
commit
4b4f4a236e

+ 1 - 1
packages/app/src/server/routes/apiv3/g2g-transfer.ts

@@ -228,7 +228,7 @@ module.exports = (crowi: Crowi): Router => {
     }
     catch (err) {
       logger.error(err);
-      return res.apiv3Error(new ErrorV3('Failed to import.', 'failed_to_import'), 500);
+      return res.apiv3Err(new ErrorV3('Failed to import.', 'failed_to_import'), 500);
     }
 
     return res.apiv3({ message: 'Successfully started to receive transfer data.' });

+ 2 - 0
packages/app/src/server/service/import.js

@@ -212,6 +212,8 @@ class ImportService {
 
     this.currentProgressingStatus = null;
     this.emitTerminateEvent();
+
+    await this.crowi.configManager.loadConfigs();
   }
 
   /**