0
Fork 0
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:
Andrey Antukh 2024-11-06 10:56:39 +01:00
parent 73d85b9884
commit b27edb4259

View file

@ -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