From b932457fd38fe43f3977b2a460e76329fc7231e8 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Mon, 28 Dec 2020 10:07:38 -0800 Subject: [PATCH] fix: Improve single collection export compatability --- server/utils/zip.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);