From 9ccf72533de9d87dd6f9c945de72b22f92d03e0c Mon Sep 17 00:00:00 2001 From: Konstantin Zharich Date: Sun, 14 Jul 2024 09:50:27 +0200 Subject: [PATCH] - added condition --- src/telegram/reactionHandler.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/telegram/reactionHandler.service.ts b/src/telegram/reactionHandler.service.ts index 39c3946..4ef4fdb 100644 --- a/src/telegram/reactionHandler.service.ts +++ b/src/telegram/reactionHandler.service.ts @@ -92,7 +92,7 @@ export class ReactionHandlerService { this.logger.error('Error while updating community user table', error); } - if (communityUser) { + if (communityUser && triggers.reaction.isEnabled) { try { await this.communityUserHistoryModel.create({ communityUserId: communityUser._id,