fix: make GetChallengerIDs return challengers instead of rivals

This commit is contained in:
zkldi
2022-04-21 16:03:16 +01:00
parent 600ac12d68
commit df480f5515
+2 -2
View File
@@ -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);
}
/**