feat: ability to define zip compression level

This commit is contained in:
Elias Schneider
2023-07-22 15:44:45 +02:00
parent 389dc87cac
commit 7827b687fa
4 changed files with 9 additions and 5 deletions

View File

@@ -104,7 +104,7 @@ export class ShareService {
const files = await this.prisma.file.findMany({ where: { shareId } });
const archive = archiver("zip", {
zlib: { level: 9 },
zlib: { level: this.config.get("share.zipCompressionLevel") },
});
const writeStream = fs.createWriteStream(`${path}/archive.zip`);