yohei0125 пре 3 година
родитељ
комит
ddc425285b
1 измењених фајлова са 3 додато и 2 уклоњено
  1. 3 2
      packages/app/src/server/crowi/index.js

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

@@ -17,6 +17,7 @@ import loggerFactory from '~/utils/logger';
 import { projectRoot } from '~/utils/project-dir-utils';
 
 import Activity from '../models/activity';
+import PageOperation, { PageActionType } from '../models/page-operation';
 import PageRedirect from '../models/page-redirect';
 import Tag from '../models/tag';
 import UserGroup from '../models/user-group';
@@ -146,6 +147,8 @@ Crowi.prototype.init = async function() {
     this.setUpUserNotification(),
   ]);
 
+  await PageOperation.clearAll([PageActionType.Rename]);
+
   await this.autoInstall();
 };
 
@@ -683,8 +686,6 @@ 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();
   }
 };