From 6dd892ac2eb52e6acdeeebd9fee132efe687307e Mon Sep 17 00:00:00 2001 From: Haiping Chen Date: Thu, 9 Jan 2025 09:54:11 -0600 Subject: [PATCH] Remove MaxConversationPerDay for database channel --- .../BotSharp.Logger/Hooks/RateLimitConversationHook.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Infrastructure/BotSharp.Logger/Hooks/RateLimitConversationHook.cs b/src/Infrastructure/BotSharp.Logger/Hooks/RateLimitConversationHook.cs index a9a9478f..9b71214d 100644 --- a/src/Infrastructure/BotSharp.Logger/Hooks/RateLimitConversationHook.cs +++ b/src/Infrastructure/BotSharp.Logger/Hooks/RateLimitConversationHook.cs @@ -52,7 +52,7 @@ public class RateLimitConversationHook : ConversationHookBase var channel = states.GetState("channel"); // Check the number of conversations - if (channel != ConversationChannel.Phone && channel != ConversationChannel.Email) + if (channel != ConversationChannel.Phone && channel != ConversationChannel.Email && channel != ConversationChannel.Database) { var user = _services.GetRequiredService(); var convService = _services.GetRequiredService();