diff --git a/server/utils/zip.js b/server/utils/zip.js index bae9d4579..aa1205fdd 100644 --- a/server/utils/zip.js +++ b/server/utils/zip.js @@ -67,7 +67,8 @@ export async function archiveCollection(collection: Collection) { const zip = new JSZip(); if (collection.documentStructure) { - await addToArchive(zip, collection.documentStructure); + const folder = zip.folder(collection.name); + await addToArchive(folder, collection.documentStructure); } return archiveToPath(zip);