From e4d88b3ab4549bb403572f4eabe3a21223e09c6e Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Thu, 23 Jul 2026 11:02:27 +0200 Subject: [PATCH] :bug: Show proper version on error report api --- backend/src/app/rpc/commands/error_reports.clj | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/backend/src/app/rpc/commands/error_reports.clj b/backend/src/app/rpc/commands/error_reports.clj index 8b9e11dda2..fb14f6ff78 100644 --- a/backend/src/app/rpc/commands/error_reports.clj +++ b/backend/src/app/rpc/commands/error_reports.clj @@ -169,12 +169,13 @@ [cfg {:keys [id]}] (if-let [report (db/get-by-id cfg :server-error-report id {::db/check-deleted false})] (let [content (db/decode-transit-pgobject (:content report))] - (-> report - (dissoc :content) - (merge content) - (update :source source->name) - (assoc :kind (or (:kind content) (:origin content))) - (d/without-nils))) + (-> report + (dissoc :content) + (merge content) + (update :source source->name) + (assoc :kind (or (:kind content) (:origin content))) + (assoc :version (:version content)) + (d/without-nils))) (ex/raise :type :not-found :code :report-not-found :hint (str "error report " id " not found"))))