From abf397fe5b9d1ad8d4c4486945c1fc544d1f9fcc Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Fri, 16 Dec 2022 08:24:37 +0100 Subject: [PATCH] :sparkles: Remove share-id from comments webhook --- backend/src/app/rpc/commands/comments.clj | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/backend/src/app/rpc/commands/comments.clj b/backend/src/app/rpc/commands/comments.clj index 2f964397c..8d1162cad 100644 --- a/backend/src/app/rpc/commands/comments.clj +++ b/backend/src/app/rpc/commands/comments.clj @@ -10,10 +10,12 @@ [app.common.geom.point :as gpt] [app.common.spec :as us] [app.db :as db] + [app.loggers.audit :as-alias audit] [app.loggers.webhooks :as-alias webhooks] [app.rpc.commands.files :as files] [app.rpc.commands.teams :as teams] [app.rpc.doc :as-alias doc] + [app.rpc.helpers :as rph] [app.util.blob :as blob] [app.util.retry :as rtry] [app.util.services :as sv] @@ -426,7 +428,9 @@ (upsert-comment-thread-status! conn profile-id thread-id) ;; Return the created comment object. - comment))) + (rph/with-meta comment + {::audit/props {:file-id (:file-id thread) + :share-id nil}})))) ;; --- COMMAND: Update Comment