Remove MaxConversationPerDay for database channel

This commit is contained in:
Haiping Chen 2025-01-09 09:54:11 -06:00
parent 43eb549bd0
commit 6dd892ac2e

View file

@ -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<IUserIdentity>();
var convService = _services.GetRequiredService<IConversationService>();