mirror of
https://github.com/penpot/penpot.git
synced 2025-08-03 06:48:21 +02:00
🐛 Fix problem with multiple exports
This commit is contained in:
parent
51ea354bcb
commit
8e57932966
2 changed files with 4 additions and 1 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue