|
@@ -3,6 +3,8 @@ import isThisHour from 'date-fns/isThisHour/index.js';
|
|
|
import loggerFactory from '~/utils/logger';
|
|
import loggerFactory from '~/utils/logger';
|
|
|
import ActivityDefine from '../util/activityDefine';
|
|
import ActivityDefine from '../util/activityDefine';
|
|
|
|
|
|
|
|
|
|
+import { createSnapshot } from '../../components/InAppNotification/renderTargetModel/page';
|
|
|
|
|
+
|
|
|
const mongoose = require('mongoose');
|
|
const mongoose = require('mongoose');
|
|
|
const escapeStringRegexp = require('escape-string-regexp');
|
|
const escapeStringRegexp = require('escape-string-regexp');
|
|
|
const streamToPromise = require('stream-to-promise');
|
|
const streamToPromise = require('stream-to-promise');
|
|
@@ -812,6 +814,9 @@ class PageService {
|
|
|
|
|
|
|
|
const { activityService, inAppNotificationService } = this.crowi;
|
|
const { activityService, inAppNotificationService } = this.crowi;
|
|
|
|
|
|
|
|
|
|
+ const t = createSnapshot(page);
|
|
|
|
|
+ console.log(t);
|
|
|
|
|
+
|
|
|
const snapshot = JSON.stringify({
|
|
const snapshot = JSON.stringify({
|
|
|
path: page.path,
|
|
path: page.path,
|
|
|
creator: page.creator,
|
|
creator: page.creator,
|