mirror of
https://github.com/DrMboga/WotBlitzStatisticsBlazor.git
synced 2026-10-26 20:00:05 +01:00
Saving accounts To DB
This commit is contained in:
1 parent
31b067e087
commit
ddbf42e7bb
14 files changed
+372
-54
No files matched your search
+2
-4
@@ -30,10 +30,8 @@ namespace WotBlitzStatisticsPro.Logic.AccountInformationPipeline.Operations
|
||||
context.AccountInfo = _mapper.Map<WotAccountInfo, AccountInfo>(accountInfo);
|
||||
context.AccountInfo.Realm = context.RealmType;
|
||||
|
||||
context.AccountInfoHistory =
|
||||
_mapper.Map<WotAccountFullStatistics, AccountInfoHistory>(accountInfo.Statistics.All);
|
||||
context.AccountInfoHistory.AccountId = context.AccountId;
|
||||
context.AccountInfoHistory.LastBattleTime = context.AccountInfo.LastBattleTime;
|
||||
context.AccountInfoHistory = new AccountInfoHistory(context.AccountId, context.AccountInfo.LastBattleTime);
|
||||
_mapper.Map(accountInfo.Statistics.All, context.AccountInfoHistory);
|
||||
|
||||
await next.Invoke(context);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user