From 1fb21d537c8026aeeb2a4be9263a81875e02bda0 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Tue, 15 Oct 2024 09:00:49 +0200 Subject: [PATCH] :bug: Send thread-id on create-comment-thread rpc method --- backend/src/app/loggers/webhooks.clj | 2 +- backend/src/app/rpc/commands/comments.clj | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/backend/src/app/loggers/webhooks.clj b/backend/src/app/loggers/webhooks.clj index 371b627bb..4bcd2b009 100644 --- a/backend/src/app/loggers/webhooks.clj +++ b/backend/src/app/loggers/webhooks.clj @@ -135,7 +135,7 @@ (l/dbg :hint "run webhook" :event-name (:name event) - :webhook-id (:id whook) + :webhook-id (str (:id whook)) :webhook-uri (:uri whook) :webhook-mtype (:mtype whook)) diff --git a/backend/src/app/rpc/commands/comments.clj b/backend/src/app/rpc/commands/comments.clj index ba201fe8c..fafecd8b8 100644 --- a/backend/src/app/rpc/commands/comments.clj +++ b/backend/src/app/rpc/commands/comments.clj @@ -328,8 +328,10 @@ :page-name page-name :position position :content content - :frame-id frame-id}] - (db/tx-run! cfg create-comment-thread params)))) + :frame-id frame-id} + thread (db/tx-run! cfg create-comment-thread params)] + + (vary-meta thread assoc ::audit/props thread)))) (defn- create-comment-thread [{:keys [::db/conn] :as cfg}