فهرست منبع

Fixed autoInstall() to run after socketIoService.attachServer()

Shun Miyazawa 2 سال پیش
والد
کامیت
74b4ae156e
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      apps/app/src/server/crowi/index.js

+ 2 - 2
apps/app/src/server/crowi/index.js

@@ -176,8 +176,6 @@ Crowi.prototype.init = async function() {
     this.setupExternalUserGroupSyncService(),
   ]);
 
-  await this.autoInstall();
-
   await normalizeData();
 };
 
@@ -505,6 +503,8 @@ Crowi.prototype.start = async function() {
   // Execute this asynchronously after the express server is ready so it does not block the ongoing process
   this.asyncAfterExpressServerReady();
 
+  this.autoInstall();
+
   return serverListening;
 };