From 7d4feac46b1f2861f665e8e383e81f96e1ccd4e6 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Wed, 30 Sep 2026 12:50:28 +0000 Subject: [PATCH] :bug: Fix svg-attrs test passing MapEntry to SQL query The import-svg-attrs-asset helper called (first result) on the map returned by import-files!, yielding a clojure.lang.MapEntry instead of a file UUID. PostgreSQL rejected the MapEntry as a query parameter with "Can't infer the SQL type". Extract the id via (first (:file-ids result)) as the neighboring test already does. AI-assisted-by: longcat-2.5-preview-free --- backend/test/backend_tests/binfile_test.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/test/backend_tests/binfile_test.clj b/backend/test/backend_tests/binfile_test.clj index 72a17bac6f..715def2ad2 100644 --- a/backend/test/backend_tests/binfile_test.clj +++ b/backend/test/backend_tests/binfile_test.clj @@ -215,7 +215,7 @@ (assoc ::bfc/profile-id (:id profile)) (assoc ::bfc/input input) (v3/import-files!))] - (bfc/get-file th/*system* (first result)))) + (bfc/get-file th/*system* (first (:file-ids result))))) (t/deftest import-binfile-v3-preserves-camel-case-svg-attrs ;; The json reader used by the v3 import rewrites every key of every