mirror of
https://github.com/penpot/penpot.git
synced 2025-06-13 22:51:41 +02:00
🐛 Validate and decode params on export-binfile
This commit is contained in:
parent
47f80cf3db
commit
3ec797f56e
1 changed files with 1 additions and 2 deletions
|
@ -38,7 +38,6 @@
|
||||||
(def ^:private
|
(def ^:private
|
||||||
schema:export-binfile
|
schema:export-binfile
|
||||||
[:map {:title "export-binfile"}
|
[:map {:title "export-binfile"}
|
||||||
[:name [:string {:max 250}]]
|
|
||||||
[:file-id ::sm/uuid]
|
[:file-id ::sm/uuid]
|
||||||
[:version {:optional true} ::sm/int]
|
[:version {:optional true} ::sm/int]
|
||||||
[:include-libraries ::sm/boolean]
|
[:include-libraries ::sm/boolean]
|
||||||
|
@ -78,7 +77,7 @@
|
||||||
"Export a penpot file in a binary format."
|
"Export a penpot file in a binary format."
|
||||||
{::doc/added "1.15"
|
{::doc/added "1.15"
|
||||||
::webhooks/event? true
|
::webhooks/event? true
|
||||||
::sm/result schema:export-binfile}
|
::sm/params schema:export-binfile}
|
||||||
[{:keys [::db/pool] :as cfg} {:keys [::rpc/profile-id version file-id] :as params}]
|
[{:keys [::db/pool] :as cfg} {:keys [::rpc/profile-id version file-id] :as params}]
|
||||||
(files/check-read-permissions! pool profile-id file-id)
|
(files/check-read-permissions! pool profile-id file-id)
|
||||||
(fn [_]
|
(fn [_]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue