yusuketk 5 lat temu
rodzic
commit
c7c1cefc43

+ 1 - 1
src/server/routes/apiv3/page.js

@@ -8,7 +8,6 @@ const { body, query } = require('express-validator');
 const router = express.Router();
 const router = express.Router();
 
 
 const ErrorV3 = require('../../models/vo/error-apiv3');
 const ErrorV3 = require('../../models/vo/error-apiv3');
-const exportService = require('../../service/export');
 
 
 /**
 /**
  * @swagger
  * @swagger
@@ -119,6 +118,7 @@ module.exports = (crowi) => {
 
 
   const globalNotificationService = crowi.getGlobalNotificationService();
   const globalNotificationService = crowi.getGlobalNotificationService();
   const { Page, GlobalNotificationSetting } = crowi.models;
   const { Page, GlobalNotificationSetting } = crowi.models;
+  const { exportService } = crowi;
 
 
   const validator = {
   const validator = {
     likes: [
     likes: [

+ 1 - 1
src/server/service/export.js

@@ -350,7 +350,7 @@ class ExportService {
     return zipFile;
     return zipFile;
   }
   }
 
 
-  createReadStreamAsFileFromString(res, str, format, fileName) {
+  getReadStreamAsFileFromString(res, str, format, fileName) {
     const Readable = require('stream').Readable;
     const Readable = require('stream').Readable;
     const readable = new Readable();
     const readable = new Readable();
     readable._read = () => {};
     readable._read = () => {};