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);
     }