reiji-h 1 سال پیش
والد
کامیت
b33015b353
1فایلهای تغییر یافته به همراه1 افزوده شده و 4 حذف شده
  1. 1 4
      apps/app/src/features/growi-plugin/server/services/growi-plugin/growi-plugin.ts

+ 1 - 4
apps/app/src/features/growi-plugin/server/services/growi-plugin/growi-plugin.ts

@@ -211,10 +211,7 @@ export class GrowiPluginService implements IGrowiPluginService {
   private async unzip(zipFilePath: fs.PathLike, destPath: fs.PathLike): Promise<void> {
     try {
       const readZipStream = fs.createReadStream(zipFilePath);
-      const writeUnZipStream = unzipStream.Extract({ path: destPath.toString() });
-
-      const unzipFileStream = pipeline(readZipStream, writeUnZipStream);
-
+      const unzipFileStream = pipeline(readZipStream, unzipStream.Extract({ path: destPath.toString() }));
 
       await streamToPromise(unzipFileStream);
     }