chore: added some metadata to response to sinplify clan resolver

This commit is contained in:
Mikhail Shabanov committed 2021-05-28 19:43:08 +02:00
1 parent 6ed4738197
commit 53fb441b93
5 files changed
+10 -46

No files matched your search

@@ -46,6 +46,9 @@ namespace WotBlitzStatisticsPro.Logic.AccountInformationPipeline.Operations
contextData.Response = _mapper.Map<AccountInfo, AccountInfoResponse>(contextData.AccountInfo);
contextData.Response = _mapper.Map(contextData.AccountInfoHistory, contextData.Response);
contextData.Response.RegionAndLanguage =
new RealmAndLanguage(context.Request.RealmType, context.Request.RequestLanguage);
var tankIds = contextData.Tanks.Select(t => t.TankId).ToArray();
var vehicles = await _dictionariesDataAccessor.GetVehicles(tankIds);