🐛 Fix problem with multiple exports

This commit is contained in:
alonso.torres 2022-01-04 14:34:12 +01:00
parent 51ea354bcb
commit 8e57932966
2 changed files with 4 additions and 1 deletions

View file

@ -80,9 +80,11 @@
(p/then (fn [results]
(reduce #(zip/add! %1 (:filename %2) (:content %2)) (zip/create) results)))
(p/then (fn [fzip]
(.generateAsync ^js fzip #js {:type "uint8array"})))
(p/then (fn [data]
{:status 200
:headers {"content-type" "application/zip"}
:body (.generateNodeStream ^js fzip)})))))
:body data})))))
(defn- perform-export
[params]