mirror of
https://github.com/cassoule/flopobot_v2.git
synced 2026-03-18 13:30:36 +01:00
user.username in sotd rankings
This commit is contained in:
@@ -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) => ({
|
||||
|
||||
Reference in New Issue
Block a user