mirror of
https://github.com/penpot/penpot.git
synced 2026-08-01 19:06:18 +00:00
🐛 Show proper version on error report api
This commit is contained in:
parent
66b978c01e
commit
e4d88b3ab4
@ -169,12 +169,13 @@
|
|||||||
[cfg {:keys [id]}]
|
[cfg {:keys [id]}]
|
||||||
(if-let [report (db/get-by-id cfg :server-error-report id {::db/check-deleted false})]
|
(if-let [report (db/get-by-id cfg :server-error-report id {::db/check-deleted false})]
|
||||||
(let [content (db/decode-transit-pgobject (:content report))]
|
(let [content (db/decode-transit-pgobject (:content report))]
|
||||||
(-> report
|
(-> report
|
||||||
(dissoc :content)
|
(dissoc :content)
|
||||||
(merge content)
|
(merge content)
|
||||||
(update :source source->name)
|
(update :source source->name)
|
||||||
(assoc :kind (or (:kind content) (:origin content)))
|
(assoc :kind (or (:kind content) (:origin content)))
|
||||||
(d/without-nils)))
|
(assoc :version (:version content))
|
||||||
|
(d/without-nils)))
|
||||||
(ex/raise :type :not-found
|
(ex/raise :type :not-found
|
||||||
:code :report-not-found
|
:code :report-not-found
|
||||||
:hint (str "error report " id " not found"))))
|
:hint (str "error report " id " not found"))))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user