user.username in sotd rankings

This commit is contained in:
Milo
2026-03-16 13:46:41 +01:00
parent 622522afa7
commit 78ecf9698c

View File

@@ -14,7 +14,7 @@ export async function deleteSOTD() {
export async function getAllSOTDStats() {
const stats = await prisma.sotdStat.findMany({
include: { user: { select: { globalName: true, avatarUrl: true } } },
include: { user: { select: { username: true, globalName: true, avatarUrl: true } } },
orderBy: [{ score: "desc" }, { moves: "asc" }, { time: "asc" }],
});
return stats.map((s) => ({