Tank info history query

This commit is contained in:
Mikhail Shabanov committed 2021-01-05 13:04:13 +01:00
1 parent 9b9f2b141e
commit eef4e9255b
14 files changed
+352 -32

No files matched your search

@@ -125,7 +125,7 @@ namespace WotBlitzStatisticsPro.DataAccess
var history = await _database.GetCollection<TankInfoHistory>(TankInfoHistoryCollectionName)
.FindAsync(
Builders<TankInfoHistory>.Filter.Where(t =>
t.TankInfoHistoryId.AccountId == accountId && t.TankId == tankId && t.TankInfoHistoryId.LastBattleTime >= lastBattleSince),
t.TankInfoHistoryId.AccountId == accountId && t.TankInfoHistoryId.TankId == tankId && t.TankInfoHistoryId.LastBattleTime >= lastBattleSince),
new FindOptions<TankInfoHistory>
{Sort = Builders<TankInfoHistory>.Sort.Descending(h => h.TankInfoHistoryId.LastBattleTime)});
return history.ToList();