mirror of
https://github.com/DrMboga/WotBlitzStatisticsBlazor.git
synced 2026-10-23 19:30:06 +02:00
chore: added some metadata to response to sinplify clan resolver
This commit is contained in:
1 parent
6ed4738197
commit
53fb441b93
5 files changed
+10
-46
No files matched your search
@@ -1,6 +1,5 @@
|
||||
using HotChocolate.Types;
|
||||
using WotBlitzStatisticsPro.Common.Model;
|
||||
using WotBlitzStatisticsPro.GraphQl.Helpers;
|
||||
using WotBlitzStatisticsPro.Logic;
|
||||
|
||||
namespace WotBlitzStatisticsPro.GraphQl.Resolvers
|
||||
@@ -11,8 +10,7 @@ namespace WotBlitzStatisticsPro.GraphQl.Resolvers
|
||||
protected override void Configure(IObjectTypeDescriptor<AccountInfoResponse> descriptor)
|
||||
{
|
||||
descriptor.Field(t => t.ClanInfo)
|
||||
.Resolver(ctx => ctx.Service<IWargamingClans>().GelClanInfoByAccount(ctx.Parent<AccountInfoResponse>().AccountId, ctx.Operation.ParseOperation()));
|
||||
|
||||
.Resolver(ctx => ctx.Service<IWargamingClans>().GelClanInfoByAccount(ctx.Parent<AccountInfoResponse>().AccountId, ctx.Parent<AccountInfoResponse>().RegionAndLanguage));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user