From 7caf1ebd9068243a261057f49c337d5d627a0a80 Mon Sep 17 00:00:00 2001
From: Toastie <toastie@toastiet0ast.com>
Date: Tue, 8 Oct 2024 00:25:26 +1300
Subject: [PATCH] grpc api fix

Fixed a glitch I added in the last commit
---
 src/EllieBot/Modules/Xp/XpService.cs      | 2 +-
 src/EllieBot/Services/GrpcApi/OtherSvc.cs | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/EllieBot/Modules/Xp/XpService.cs b/src/EllieBot/Modules/Xp/XpService.cs
index 4143fab..97db7f6 100644
--- a/src/EllieBot/Modules/Xp/XpService.cs
+++ b/src/EllieBot/Modules/Xp/XpService.cs
@@ -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();
 
diff --git a/src/EllieBot/Services/GrpcApi/OtherSvc.cs b/src/EllieBot/Services/GrpcApi/OtherSvc.cs
index a2b8737..8865c6d 100644
--- a/src/EllieBot/Services/GrpcApi/OtherSvc.cs
+++ b/src/EllieBot/Services/GrpcApi/OtherSvc.cs
@@ -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();