fix(core): update

This commit is contained in:
2023-11-08 17:01:48 +01:00
parent 95069fe5c0
commit 1323458130
5 changed files with 41 additions and 36 deletions

View File

@@ -79,7 +79,7 @@ export class SmartArchive {
const streamFileStream = await this.exportToStreamOfStreamFiles();
streamFileStream.pipe(new plugins.smartstream.SmartDuplex({
objectMode: true,
writeAndTransformFunction: async (chunkArg: plugins.smartfile.StreamFile, streamtools) => {
writeFunction: async (chunkArg: plugins.smartfile.StreamFile, streamtools) => {
console.log(chunkArg.relativeFilePath);
const streamFile = chunkArg;
const readStream = await streamFile.createReadStream();