mirror of
https://github.com/penpot/penpot.git
synced 2025-06-01 06:21:39 +02:00
⬆️ Update backend dependencies
This commit is contained in:
parent
b31a6f33a5
commit
f949649ba3
14 changed files with 50 additions and 79 deletions
|
@ -88,22 +88,6 @@
|
|||
::yres/headers {"content-type" "application/octet-stream"}
|
||||
::yres/body body})))
|
||||
|
||||
|
||||
;; {::yres/status 200
|
||||
;; ::yres/headers {"content-type" "application/octet-stream"}
|
||||
;; ::yres/body (yres/stream-body
|
||||
;; (fn [_ output-stream]
|
||||
;; (try
|
||||
;; (-> cfg
|
||||
;; (assoc ::bf.v1/ids #{file-id})
|
||||
;; (assoc ::bf.v1/embed-assets embed-assets)
|
||||
;; (assoc ::bf.v1/include-libraries include-libraries)
|
||||
;; (bf.v1/export-files! output-stream))
|
||||
;; (catch Throwable cause
|
||||
;; (l/err :hint "exception on exporting file"
|
||||
;; :file-id (str file-id)
|
||||
;; :cause cause)))))}))
|
||||
|
||||
;; --- Command: import-binfile
|
||||
|
||||
(defn- import-binfile-v1
|
||||
|
|
|
@ -216,7 +216,7 @@
|
|||
{:response-type :input-stream :sync? true})
|
||||
{:keys [size mtype]} (parse-and-validate response)
|
||||
path (tmp/tempfile :prefix "penpot.media.download.")
|
||||
written (io/write-to-file! body path :size size)]
|
||||
written (io/write* path body :size size)]
|
||||
|
||||
(when (not= written size)
|
||||
(ex/raise :type :internal
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue