From 3ec797f56ebd5a5c89a48f65f114bdf50b4ca6a7 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Tue, 1 Apr 2025 19:16:35 +0200 Subject: [PATCH] :bug: Validate and decode params on export-binfile --- backend/src/app/rpc/commands/binfile.clj | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/src/app/rpc/commands/binfile.clj b/backend/src/app/rpc/commands/binfile.clj index 49ab841931..04f550676c 100644 --- a/backend/src/app/rpc/commands/binfile.clj +++ b/backend/src/app/rpc/commands/binfile.clj @@ -38,7 +38,6 @@ (def ^:private schema:export-binfile [:map {:title "export-binfile"} - [:name [:string {:max 250}]] [:file-id ::sm/uuid] [:version {:optional true} ::sm/int] [:include-libraries ::sm/boolean] @@ -78,7 +77,7 @@ "Export a penpot file in a binary format." {::doc/added "1.15" ::webhooks/event? true - ::sm/result schema:export-binfile} + ::sm/params schema:export-binfile} [{:keys [::db/pool] :as cfg} {:keys [::rpc/profile-id version file-id] :as params}] (files/check-read-permissions! pool profile-id file-id) (fn [_]