mirror of
https://github.com/bitwarden/server
synced 2025-12-25 12:43:14 +00:00
index table entity events
This commit is contained in:
@@ -42,11 +42,17 @@ namespace Bit.Core.Repositories.SqlServer
|
||||
|
||||
public async Task CreateManyAsync(IList<IEvent> entities)
|
||||
{
|
||||
if(!entities.Any())
|
||||
if(!entities?.Any() ?? true)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if(entities.Count == 1)
|
||||
{
|
||||
await CreateAsync(entities.First());
|
||||
return;
|
||||
}
|
||||
|
||||
using(var connection = new SqlConnection(ConnectionString))
|
||||
{
|
||||
connection.Open();
|
||||
|
||||
Reference in New Issue
Block a user