Przeglądaj źródła

put back init function(method)

yohei0125 3 lat temu
rodzic
commit
8766c7c19a
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      packages/app/src/server/crowi/index.js

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

@@ -147,8 +147,6 @@ Crowi.prototype.init = async function() {
     this.setUpUserNotification(),
     this.setUpUserNotification(),
   ]);
   ]);
 
 
-  await PageOperation.clearAll([PageActionType.Rename]);
-
   await this.autoInstall();
   await this.autoInstall();
 };
 };
 
 
@@ -686,6 +684,8 @@ Crowi.prototype.setupPageService = async function() {
   }
   }
   if (this.pageOperationService == null) {
   if (this.pageOperationService == null) {
     this.pageOperationService = new PageOperationService(this);
     this.pageOperationService = new PageOperationService(this);
+    // TODO: Remove this code when resuming feature is implemented
+    await this.pageOperationService.init();
   }
   }
 };
 };