2
0
Эх сурвалжийг харах

Merge pull request #9444 from weseek/fix/158086-failed-to-export-the-page-markdown

fix: Failed to export the page markdown
mergify[bot] 1 жил өмнө
parent
commit
e5891db75f

+ 3 - 2
apps/app/src/server/routes/apiv3/page/index.ts

@@ -1,5 +1,6 @@
 import path from 'path';
-import { pipeline, type Readable } from 'stream';
+import { type Readable } from 'stream';
+import { pipeline } from 'stream/promises';
 
 import type { IPage } from '@growi/core';
 import {
@@ -761,7 +762,7 @@ module.exports = (crowi) => {
     };
     await crowi.activityService.createActivity(parameters);
 
-    return pipeline(stream, res);
+    await pipeline(stream, res);
   });
 
   /**