aboutsummaryrefslogtreecommitdiff
path: root/src/server/ApiManagers/ExportManager.ts
diff options
context:
space:
mode:
authorMohammad Amoush <muhammedamoush@gmail.com>2019-10-29 17:05:12 -0400
committerMohammad Amoush <muhammedamoush@gmail.com>2019-10-29 17:05:12 -0400
commit0de6a6bccc3a1bc8f4513baf082f117e64c74362 (patch)
tree317496b481c8b65bd531d850da5346a69cc7fa31 /src/server/ApiManagers/ExportManager.ts
parent3db5ea503754b74681f44ebffeb251dfad8ee65e (diff)
parentba7568e4fe2e9323a66a91876305f829487bffb9 (diff)
Merge branch 'server_refactor' of https://github.com/browngraphicslab/Dash-Web into server_refactor
Diffstat (limited to 'src/server/ApiManagers/ExportManager.ts')
-rw-r--r--src/server/ApiManagers/ExportManager.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/ApiManagers/ExportManager.ts b/src/server/ApiManagers/ExportManager.ts
index 261acbbe0..14ac7dd5b 100644
--- a/src/server/ApiManagers/ExportManager.ts
+++ b/src/server/ApiManagers/ExportManager.ts
@@ -26,7 +26,7 @@ export default class ExportManager extends ApiManager {
const id = req.params.docId;
const hierarchy: Hierarchy = {};
await buildHierarchyRecursive(id, hierarchy);
- BuildAndDispatchZip(res, zip => writeHierarchyRecursive(zip, hierarchy));
+ return BuildAndDispatchZip(res, zip => writeHierarchyRecursive(zip, hierarchy));
}
});
}
@@ -48,7 +48,7 @@ export async function BuildAndDispatchZip(res: express.Response, mutator: ZipMut
const zip = Archiver('zip');
zip.pipe(res);
await mutator(zip);
- zip.finalize();
+ return zip.finalize();
}
/**