fix: random page broken

This commit is contained in:
trafficlunar 2026-04-26 17:02:13 +01:00
parent 0ede4c7260
commit a000447b0a

View file

@ -9,7 +9,7 @@ export default async function RandomPage() {
const randomIndex = Math.floor(Math.random() * count); const randomIndex = Math.floor(Math.random() * count);
const randomMii = await prisma.mii.findFirst({ const randomMii = await prisma.mii.findFirst({
where: { in_queue: false, quarantined: false, needsFixing: { not: null } }, where: { in_queue: false, quarantined: false, needsFixing: null },
skip: randomIndex, skip: randomIndex,
take: 1, take: 1,
select: { id: true }, select: { id: true },