mirror of
https://github.com/penpot/penpot.git
synced 2025-05-23 01:36:11 +02:00
🐛 Use proper schema for move-file rpc method
This commit is contained in:
parent
73d85b9884
commit
b27edb4259
1 changed files with 2 additions and 2 deletions
|
@ -326,7 +326,7 @@
|
||||||
(def ^:private
|
(def ^:private
|
||||||
schema:move-files
|
schema:move-files
|
||||||
[:map {:title "move-files"}
|
[:map {:title "move-files"}
|
||||||
[:ids ::sm/set-of-uuid]
|
[:ids [::sm/set {:min 1} ::sm/uuid]]
|
||||||
[:project-id ::sm/uuid]])
|
[:project-id ::sm/uuid]])
|
||||||
|
|
||||||
(sv/defmethod ::move-files
|
(sv/defmethod ::move-files
|
||||||
|
@ -335,7 +335,7 @@
|
||||||
::webhooks/event? true
|
::webhooks/event? true
|
||||||
::sm/params schema:move-files}
|
::sm/params schema:move-files}
|
||||||
[cfg {:keys [::rpc/profile-id] :as params}]
|
[cfg {:keys [::rpc/profile-id] :as params}]
|
||||||
(db/tx-run! cfg #(move-files % (assoc params :profile-id profile-id))))
|
(db/tx-run! cfg move-files (assoc params :profile-id profile-id)))
|
||||||
|
|
||||||
;; --- COMMAND: Move project
|
;; --- COMMAND: Move project
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue