Skip to content

A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.

TypeScript fluxerfluxerapp

perf(worker): match the user export zip level to the guild one (#2213)

Hampus7157cca22f04
diff --git a/fluxer_api/src/api/worker/tasks/HarvestUserData.ts b/fluxer_api/src/api/worker/tasks/HarvestUserData.ts
index fcdb3cd04..70334e5a6 100644
--- a/fluxer_api/src/api/worker/tasks/HarvestUserData.ts
+++ b/fluxer_api/src/api/worker/tasks/HarvestUserData.ts
@@ -604,7 +604,7 @@ async function createAndUploadArchive(params: ArchiveParams): Promise<ArchiveRes
let output: fs.WriteStream | null = null;
try {
output = fs.createWriteStream(zipPath);
- const archive = archiver('zip', {zlib: {level: 9}});
+ const archive = archiver('zip', {zlib: {level: 6}});
archive.pipe(output);
archive.append(userDataJsonBuffer, {name: 'user.json'});
if (user.avatarHash) {