1
0
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:
Kyle Spearrin
2017-12-14 17:23:46 -05:00
parent 93ccfa7eac
commit 992fac1328
3 changed files with 75 additions and 81 deletions

View File

@@ -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();