Quellcode durchsuchen

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

Shun Miyazawa vor 2 Jahren
Ursprung
Commit
74b4ae156e
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  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;
 };