|
@@ -8,7 +8,7 @@ import {
|
|
|
GroupType, type HasObjectId,
|
|
GroupType, type HasObjectId,
|
|
|
} from '@growi/core';
|
|
} from '@growi/core';
|
|
|
import { isPopulated } from '@growi/core/dist/interfaces';
|
|
import { isPopulated } from '@growi/core/dist/interfaces';
|
|
|
-import { isTopPage, hasSlash, collectAncestorPaths } from '@growi/core/dist/utils/page-path-utils';
|
|
|
|
|
|
|
+import { isTopPage, hasSlash } from '@growi/core/dist/utils/page-path-utils';
|
|
|
import { addTrailingSlash, normalizePath } from '@growi/core/dist/utils/path-utils';
|
|
import { addTrailingSlash, normalizePath } from '@growi/core/dist/utils/path-utils';
|
|
|
import escapeStringRegexp from 'escape-string-regexp';
|
|
import escapeStringRegexp from 'escape-string-regexp';
|
|
|
import type { Model, Document, AnyObject } from 'mongoose';
|
|
import type { Model, Document, AnyObject } from 'mongoose';
|
|
@@ -23,6 +23,7 @@ import type { IOptionsForCreate } from '~/interfaces/page';
|
|
|
import type { ObjectIdLike } from '~/server/interfaces/mongoose-utils';
|
|
import type { ObjectIdLike } from '~/server/interfaces/mongoose-utils';
|
|
|
|
|
|
|
|
import loggerFactory from '../../utils/logger';
|
|
import loggerFactory from '../../utils/logger';
|
|
|
|
|
+import { collectAncestorPaths } from '../util/collect-ancestor-paths';
|
|
|
import { getOrCreateModel } from '../util/mongoose-utils';
|
|
import { getOrCreateModel } from '../util/mongoose-utils';
|
|
|
|
|
|
|
|
import { getPageSchema, extractToAncestorsPaths, populateDataToShowRevision } from './obsolete-page';
|
|
import { getPageSchema, extractToAncestorsPaths, populateDataToShowRevision } from './obsolete-page';
|