|
@@ -10,7 +10,6 @@ import mongoose, {
|
|
|
import mongoosePaginate from 'mongoose-paginate-v2';
|
|
import mongoosePaginate from 'mongoose-paginate-v2';
|
|
|
import uniqueValidator from 'mongoose-unique-validator';
|
|
import uniqueValidator from 'mongoose-unique-validator';
|
|
|
|
|
|
|
|
-
|
|
|
|
|
import { IUserHasId } from '~/interfaces/user';
|
|
import { IUserHasId } from '~/interfaces/user';
|
|
|
import { ObjectIdLike } from '~/server/interfaces/mongoose-utils';
|
|
import { ObjectIdLike } from '~/server/interfaces/mongoose-utils';
|
|
|
|
|
|
|
@@ -21,11 +20,9 @@ import Crowi from '../crowi';
|
|
|
import { getPageSchema, extractToAncestorsPaths, populateDataToShowRevision } from './obsolete-page';
|
|
import { getPageSchema, extractToAncestorsPaths, populateDataToShowRevision } from './obsolete-page';
|
|
|
import { PageRedirectModel } from './page-redirect';
|
|
import { PageRedirectModel } from './page-redirect';
|
|
|
|
|
|
|
|
-
|
|
|
|
|
const { addTrailingSlash } = pathUtils;
|
|
const { addTrailingSlash } = pathUtils;
|
|
|
const { isTopPage, collectAncestorPaths } = pagePathUtils;
|
|
const { isTopPage, collectAncestorPaths } = pagePathUtils;
|
|
|
|
|
|
|
|
-
|
|
|
|
|
const logger = loggerFactory('growi:models:page');
|
|
const logger = loggerFactory('growi:models:page');
|
|
|
/*
|
|
/*
|
|
|
* define schema
|
|
* define schema
|