mirror of
https://github.com/penpot/penpot.git
synced 2026-10-03 01:06:14 +00:00
🐛 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
This commit is contained in:
parent
fc184c05ed
commit
7d4feac46b
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user