mirror of
https://github.com/cassoule/flopobot_v2.git
synced 2026-03-18 21:40:27 +01:00
Merge pull request #87 from cassoule/milo-260310
user.username in sotd rankings
This commit is contained in:
@@ -14,7 +14,7 @@ export async function deleteSOTD() {
|
|||||||
|
|
||||||
export async function getAllSOTDStats() {
|
export async function getAllSOTDStats() {
|
||||||
const stats = await prisma.sotdStat.findMany({
|
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" }],
|
orderBy: [{ score: "desc" }, { moves: "asc" }, { time: "asc" }],
|
||||||
});
|
});
|
||||||
return stats.map((s) => ({
|
return stats.map((s) => ({
|
||||||
|
|||||||
Reference in New Issue
Block a user