mirror of
https://github.com/penpot/penpot.git
synced 2026-04-25 19:28:12 +00:00
🐛 Fix wrong exception handling on pgsql bundled client.
This commit is contained in:
parent
d79161aee0
commit
59bab376cd
@ -116,8 +116,8 @@
|
||||
[conn sql params {:keys [xfm] :as opts}]
|
||||
(let [conn (if (instance? IDeref conn) @conn conn)]
|
||||
(-> (impl-execute conn sql params)
|
||||
(p/catch' (fn [err]
|
||||
(p/rejected err)))
|
||||
(p/catch (fn [err]
|
||||
(p/rejected err)))
|
||||
(p/then' (fn [rows]
|
||||
(if xfm
|
||||
(into [] xfm rows)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user