فهرست منبع

put back init function(method)

yohei0125 4 سال پیش
والد
کامیت
8766c7c19a
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  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(),
   ]);
 
-  await PageOperation.clearAll([PageActionType.Rename]);
-
   await this.autoInstall();
 };
 
@@ -686,6 +684,8 @@ Crowi.prototype.setupPageService = async function() {
   }
   if (this.pageOperationService == null) {
     this.pageOperationService = new PageOperationService(this);
+    // TODO: Remove this code when resuming feature is implemented
+    await this.pageOperationService.init();
   }
 };