grpc api fix
Fixed a glitch I added in the last commit
This commit is contained in:
parent
21267db587
commit
7caf1ebd90
2 changed files with 2 additions and 2 deletions
|
@ -587,7 +587,7 @@ public class XpService : IEService, IReadyExecutor, IExecNoCommand
|
|||
.ToArrayAsyncLinqToDB();
|
||||
}
|
||||
|
||||
public async Task<IReadOnlyCollection<DiscordUser>> GetGuildUserXps(int page)
|
||||
public async Task<IReadOnlyCollection<DiscordUser>> GetGlobalUserXps(int page)
|
||||
{
|
||||
await using var uow = _db.GetDbContext();
|
||||
|
||||
|
|
|
@ -105,7 +105,7 @@ public sealed class OtherSvc : GrpcOther.GrpcOtherBase, IEService
|
|||
|
||||
public override async Task<XpLbReply> GetXpLb(GetLbRequest request, ServerCallContext context)
|
||||
{
|
||||
var users = await _xp.GetGuildUserXps(request.Page, request.PerPage);
|
||||
var users = await _xp.GetGlobalUserXps(request.Page);
|
||||
|
||||
var reply = new XpLbReply();
|
||||
|
||||
|
|
Loading…
Reference in a new issue