yohei0125 3 лет назад
Родитель
Сommit
b89af67ae9
1 измененных файлов с 6 добавлено и 1 удалено
  1. 6 1
      packages/app/src/server/service/page-operation.ts

+ 6 - 1
packages/app/src/server/service/page-operation.ts

@@ -1,6 +1,6 @@
 import { pagePathUtils } from '@growi/core';
 import { pagePathUtils } from '@growi/core';
 
 
-import PageOperation, { PageActionType } from '~/server/models/page-operation';
+import PageOperation from '~/server/models/page-operation';
 
 
 const { isEitherOfPathAreaOverlap, isPathAreaOverlap, isTrashPage } = pagePathUtils;
 const { isEitherOfPathAreaOverlap, isPathAreaOverlap, isTrashPage } = pagePathUtils;
 
 
@@ -12,6 +12,11 @@ class PageOperationService {
     this.crowi = crowi;
     this.crowi = crowi;
   }
   }
 
 
+  // TODO: Remove this code when resuming feature is implemented
+  async init():Promise<void> {
+    await PageOperation.deleteMany({});
+  }
+
   /**
   /**
    * Check if the operation is operatable
    * Check if the operation is operatable
    * @param isRecursively Boolean that determines whether the operation is recursive or not
    * @param isRecursively Boolean that determines whether the operation is recursive or not