|
|
@@ -247,7 +247,7 @@ module.exports = (crowi) => {
|
|
|
|
|
|
const numOfPages = 1; // TODO 最終的にzipファイルに取り込むページ数を入れる
|
|
|
|
|
|
- await PageArchive.create({
|
|
|
+ const pageArchiveCreate = await PageArchive.create({
|
|
|
owner,
|
|
|
fileType,
|
|
|
rootPagePath,
|
|
|
@@ -255,6 +255,9 @@ module.exports = (crowi) => {
|
|
|
hasComment: isCommentDownload,
|
|
|
hasAttachment: isAttachmentFileDownload,
|
|
|
});
|
|
|
+
|
|
|
+ return res.apiv3({ pageArchiveCreate });
|
|
|
+
|
|
|
});
|
|
|
|
|
|
router.get('/count-children-pages', accessTokenParser, loginRequired, async(req, res) => {
|