|
|
@@ -1,6 +1,6 @@
|
|
|
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;
|
|
|
|
|
|
@@ -12,6 +12,11 @@ class PageOperationService {
|
|
|
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
|
|
|
* @param isRecursively Boolean that determines whether the operation is recursive or not
|