|
@@ -11,7 +11,6 @@ import {
|
|
|
normalizeLatestRevisionIfBroken,
|
|
normalizeLatestRevisionIfBroken,
|
|
|
} from '~/server/service/revision/normalize-latest-revision-if-broken';
|
|
} from '~/server/service/revision/normalize-latest-revision-if-broken';
|
|
|
import loggerFactory from '~/utils/logger';
|
|
import loggerFactory from '~/utils/logger';
|
|
|
-import { prisma } from '~/utils/prisma';
|
|
|
|
|
|
|
|
|
|
import { apiV3FormValidator } from '../../middlewares/apiv3-form-validator';
|
|
import { apiV3FormValidator } from '../../middlewares/apiv3-form-validator';
|
|
|
|
|
|
|
@@ -142,11 +141,6 @@ module.exports = (crowi) => {
|
|
|
const { isSharedPage } = req;
|
|
const { isSharedPage } = req;
|
|
|
const offset = req.query.offset || 0;
|
|
const offset = req.query.offset || 0;
|
|
|
|
|
|
|
|
- const revision = await prisma.revisions.findLatest(pageId);
|
|
|
|
|
- console.log(revision);
|
|
|
|
|
- console.log(revision.isPlain);
|
|
|
|
|
- console.log(revision.isMarkdown());
|
|
|
|
|
-
|
|
|
|
|
// check whether accessible
|
|
// check whether accessible
|
|
|
if (
|
|
if (
|
|
|
!isSharedPage &&
|
|
!isSharedPage &&
|