From 4d7a0d64a1a3bdce07b12f5b22a674ac32ffc34a Mon Sep 17 00:00:00 2001 From: Tau Date: Fri, 24 May 2019 20:56:24 -0400 Subject: [PATCH] idz: Fix loadTopTen harder Unconditionally return a response; the team ID and profile ID don't actually seem to affect what the client expects to receive (world top ten must be returned in all cases). --- src/idz/handler/loadTopTen.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/idz/handler/loadTopTen.ts b/src/idz/handler/loadTopTen.ts index a0f65d2..a6fe105 100644 --- a/src/idz/handler/loadTopTen.ts +++ b/src/idz/handler/loadTopTen.ts @@ -18,13 +18,7 @@ export async function loadTopTen( } const { routeNo, minTimestamp } = selector; - let src: TopTenResult[]; - - if (req.teamId !== undefined) { - src = []; // TODO - } else { - src = await w.timeAttack().loadTopTen(routeNo, minTimestamp); - } + const src = await w.timeAttack().loadTopTen(routeNo, minTimestamp); if (src.length === 0) { continue;