From b27edb4259471b2cda1a90098b6a49e2a66c4af6 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Wed, 6 Nov 2024 10:56:39 +0100 Subject: [PATCH] :bug: Use proper schema for move-file rpc method --- backend/src/app/rpc/commands/management.clj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/app/rpc/commands/management.clj b/backend/src/app/rpc/commands/management.clj index 223c5cb56..cad94b019 100644 --- a/backend/src/app/rpc/commands/management.clj +++ b/backend/src/app/rpc/commands/management.clj @@ -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