mirror of
https://github.com/penpot/penpot.git
synced 2025-05-11 19:06:38 +02:00
🔥 Replace spec with schema on file-thumbnails RPC methods
This commit is contained in:
parent
969c9105fd
commit
85108672bf
1 changed files with 5 additions and 4 deletions
|
@ -33,7 +33,6 @@
|
||||||
[app.util.pointer-map :as pmap]
|
[app.util.pointer-map :as pmap]
|
||||||
[app.util.services :as sv]
|
[app.util.services :as sv]
|
||||||
[app.util.time :as dt]
|
[app.util.time :as dt]
|
||||||
[clojure.spec.alpha :as s]
|
|
||||||
[cuerdas.core :as str]))
|
[cuerdas.core :as str]))
|
||||||
|
|
||||||
;; --- FEATURES
|
;; --- FEATURES
|
||||||
|
@ -314,13 +313,15 @@
|
||||||
:object-id object-id
|
:object-id object-id
|
||||||
:tag tag})))
|
:tag tag})))
|
||||||
|
|
||||||
(s/def ::delete-file-object-thumbnail
|
(def ^:private schema:delete-file-object-thumbnail
|
||||||
(s/keys :req [::rpc/profile-id]
|
[:map {:title "delete-file-object-thumbnail"}
|
||||||
:req-un [::file-id ::object-id]))
|
[:file-id ::sm/uuid]
|
||||||
|
[:object-id :string]])
|
||||||
|
|
||||||
(sv/defmethod ::delete-file-object-thumbnail
|
(sv/defmethod ::delete-file-object-thumbnail
|
||||||
{::doc/added "1.19"
|
{::doc/added "1.19"
|
||||||
::doc/module :files
|
::doc/module :files
|
||||||
|
::sm/params schema:delete-file-object-thumbnail
|
||||||
::audit/skip true}
|
::audit/skip true}
|
||||||
[cfg {:keys [::rpc/profile-id file-id object-id]}]
|
[cfg {:keys [::rpc/profile-id file-id object-id]}]
|
||||||
(files/check-edition-permissions! cfg profile-id file-id)
|
(files/check-edition-permissions! cfg profile-id file-id)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue