Skip to content

Commit

Permalink
Minor mongo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Zheneq committed Jun 17, 2023
1 parent 5d830f0 commit 3e4b8a9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion EvoS.Framework/DataAccess/Mongo/MatchHistoryMongoDao.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System.Collections.Generic;
using EvoS.Framework.DataAccess.Daos;
using EvoS.Framework.Misc;
using EvoS.Framework.Network.Static;
using MongoDB.Driver;

Expand All @@ -23,7 +24,10 @@ public List<PersistedCharacterMatchData> Find(long accountId)

public void Save(ICollection<MatchHistoryDao.MatchEntry> matchEntries)
{
c.InsertMany(matchEntries);
if (!matchEntries.IsNullOrEmpty())
{
c.InsertMany(matchEntries);
}
}
}
}

0 comments on commit 3e4b8a9

Please sign in to comment.