From df480f5515f640cefd366458bd91bbc0cf6a744d Mon Sep 17 00:00:00 2001 From: zkldi <20380519+zkldi@users.noreply.github.com> Date: Thu, 21 Apr 2022 16:03:16 +0100 Subject: [PATCH] fix: make GetChallengerIDs return challengers instead of rivals --- server/src/lib/rivals/rivals.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/lib/rivals/rivals.ts b/server/src/lib/rivals/rivals.ts index eb38730d5..a770fcef7 100644 --- a/server/src/lib/rivals/rivals.ts +++ b/server/src/lib/rivals/rivals.ts @@ -134,12 +134,12 @@ export async function GetChallengerIDs(userID: integer, game: Game, playtype: Pl }, { projection: { - rivals: 1, + userID: 1, }, } ); - return result.map((e) => e.rivals).flat(); + return result.map((e) => e.userID); } /**