mirror of
https://github.com/penpot/penpot.git
synced 2025-02-10 00:58:26 -05:00
🐛 Properly raise not found exception on get-by-id helper.
This commit is contained in:
parent
5a2ba515b8
commit
56237671ed
1 changed files with 1 additions and 1 deletions
|
@ -131,7 +131,7 @@
|
|||
(:for-update opts)
|
||||
(assoc :suffix "for update"))
|
||||
res (exec-one! ds (jdbc-bld/for-query table params opts) opts)]
|
||||
(when (:deleted-at res)
|
||||
(when (or (:deleted-at res) (not res))
|
||||
(ex/raise :type :not-found))
|
||||
res)))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue