Remove inputlogs from /api/replays/batch

This commit is contained in:
Guangcong Luo 2025-08-22 00:39:22 +00:00
parent 2a250d6f53
commit 7f45fde4f7

View File

@ -234,7 +234,9 @@ export const Replays = new class {
)`WHERE private = 0 ORDER BY uploadtime DESC LIMIT 51`.then(this.toReplays);
}
getBatch(ids: string[]) {
return replays.selectAll()`WHERE private = 0 AND id IN (${ids}) LIMIT 51`.then(this.toReplays);
return replays.selectAll(
SQL`uploadtime, id, format, players, rating, log`
)`WHERE private = 0 AND id IN (${ids}) LIMIT 51`.then(this.toReplays);
}
};