🐛 Bug fixes

This commit is contained in:
2025-05-23 01:46:35 +08:00
parent 19174de873
commit a6ca869f29
3 changed files with 4 additions and 4 deletions

View File

@ -21,7 +21,8 @@ public class MessageReadReceiptFlushHandler(IServiceProvider serviceProvider) :
.ToList();
using var scope = serviceProvider.CreateScope();
var db = scope.ServiceProvider.GetRequiredService<AppDatabase>(); await db.BulkInsertAsync(distinctItems);
var db = scope.ServiceProvider.GetRequiredService<AppDatabase>();
await db.BulkInsertAsync(distinctItems, config => config.ConflictOption = ConflictOption.Ignore);
}
}