revert code
This commit is contained in:
parent
6c1cebe87b
commit
53ef893ce9
|
|
@ -305,7 +305,7 @@ namespace BotSharp.Core.Repository
|
|||
public List<string> GetIdleConversations(int batchSize, int messageLimit, int bufferHours)
|
||||
{
|
||||
var ids = new List<string>();
|
||||
var batchLimit = 50;
|
||||
var batchLimit = 100;
|
||||
var utcNow = DateTime.UtcNow;
|
||||
var dir = Path.Combine(_dbSettings.FileRepository, _conversationSettings.DataDir);
|
||||
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ public static class BotSharpOpenApiExtensions
|
|||
bool enableValidation)
|
||||
{
|
||||
services.AddScoped<IUserIdentity, UserIdentity>();
|
||||
//services.AddHostedService<ConversationTimeoutService>();
|
||||
services.AddHostedService<ConversationTimeoutService>();
|
||||
|
||||
// Add bearer authentication
|
||||
var schema = "MIXED_SCHEME";
|
||||
|
|
|
|||
|
|
@ -306,7 +306,7 @@ public partial class MongoRepository
|
|||
public List<string> GetIdleConversations(int batchSize, int messageLimit, int bufferHours)
|
||||
{
|
||||
var page = 1;
|
||||
var batchLimit = 50;
|
||||
var batchLimit = 100;
|
||||
var utcNow = DateTime.UtcNow;
|
||||
var conversationIds = new List<string>();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue