mirror of
https://github.com/penpot/penpot.git
synced 2025-05-28 22:26:10 +02:00
🐛 Fix wrong exception handling on pgsql bundled client.
This commit is contained in:
parent
d79161aee0
commit
59bab376cd
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue