|
@@ -3,7 +3,7 @@ import { body } from 'express-validator';
|
|
|
import mongoose from 'mongoose';
|
|
import mongoose from 'mongoose';
|
|
|
import urljoin from 'url-join';
|
|
import urljoin from 'url-join';
|
|
|
|
|
|
|
|
-import { SUPPORTED_TARGET_MODEL_TYPE, SUPPORTED_ACTION_TYPE } from '~/interfaces/activity';
|
|
|
|
|
|
|
+import { SupportedTarget, SUPPORTED_ACTION_TYPE } from '~/interfaces/activity';
|
|
|
import loggerFactory from '~/utils/logger';
|
|
import loggerFactory from '~/utils/logger';
|
|
|
|
|
|
|
|
import { PathAlreadyExistsError } from '../models/errors';
|
|
import { PathAlreadyExistsError } from '../models/errors';
|
|
@@ -1000,7 +1000,7 @@ module.exports = function(crowi, app) {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
const parameters = {
|
|
const parameters = {
|
|
|
- targetModel: SUPPORTED_TARGET_MODEL_TYPE.MODEL_PAGE,
|
|
|
|
|
|
|
+ targetModel: SupportedTarget.MODEL_PAGE,
|
|
|
target: page,
|
|
target: page,
|
|
|
action: SUPPORTED_ACTION_TYPE.ACTION_PAGE_UPDATE,
|
|
action: SUPPORTED_ACTION_TYPE.ACTION_PAGE_UPDATE,
|
|
|
};
|
|
};
|
|
@@ -1242,7 +1242,7 @@ module.exports = function(crowi, app) {
|
|
|
result.isCompletely = isCompletely;
|
|
result.isCompletely = isCompletely;
|
|
|
|
|
|
|
|
const parameters = {
|
|
const parameters = {
|
|
|
- targetModel: SUPPORTED_TARGET_MODEL_TYPE.MODEL_PAGE,
|
|
|
|
|
|
|
+ targetModel: SupportedTarget.MODEL_PAGE,
|
|
|
target: page,
|
|
target: page,
|
|
|
action: isCompletely ? SUPPORTED_ACTION_TYPE.ACTION_PAGE_DELETE_COMPLETELY : SUPPORTED_ACTION_TYPE.ACTION_PAGE_DELETE,
|
|
action: isCompletely ? SUPPORTED_ACTION_TYPE.ACTION_PAGE_DELETE_COMPLETELY : SUPPORTED_ACTION_TYPE.ACTION_PAGE_DELETE,
|
|
|
};
|
|
};
|
|
@@ -1300,7 +1300,7 @@ module.exports = function(crowi, app) {
|
|
|
result.page = page; // TODO consider to use serializePageSecurely method -- 2018.08.06 Yuki Takei
|
|
result.page = page; // TODO consider to use serializePageSecurely method -- 2018.08.06 Yuki Takei
|
|
|
|
|
|
|
|
const parameters = {
|
|
const parameters = {
|
|
|
- targetModel: SUPPORTED_TARGET_MODEL_TYPE.MODEL_PAGE,
|
|
|
|
|
|
|
+ targetModel: SupportedTarget.MODEL_PAGE,
|
|
|
target: page,
|
|
target: page,
|
|
|
action: SUPPORTED_ACTION_TYPE.ACTION_PAGE_REVERT,
|
|
action: SUPPORTED_ACTION_TYPE.ACTION_PAGE_REVERT,
|
|
|
};
|
|
};
|