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).
This commit is contained in:
Tau
2019-05-24 20:56:24 -04:00
parent 9dd45558ec
commit 4d7a0d64a1

View File

@@ -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;