mirror of
https://github.com/penpot/penpot.git
synced 2025-01-21 06:02:32 -05: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
|
||||
schema:move-files
|
||||
[:map {:title "move-files"}
|
||||
[:ids ::sm/set-of-uuid]
|
||||
[:ids [::sm/set {:min 1} ::sm/uuid]]
|
||||
[:project-id ::sm/uuid]])
|
||||
|
||||
(sv/defmethod ::move-files
|
||||
|
@ -335,7 +335,7 @@
|
|||
::webhooks/event? true
|
||||
::sm/params schema:move-files}
|
||||
[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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue