mirror of
https://github.com/trafficlunar/tomodachi-share.git
synced 2026-05-13 21:27:46 +00:00
fix: don't show queued and quarantined miis on /random
This commit is contained in:
parent
d947f09112
commit
ab4b42c5b4
1 changed files with 1 additions and 0 deletions
|
|
@ -9,6 +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 },
|
||||||
skip: randomIndex,
|
skip: randomIndex,
|
||||||
take: 1,
|
take: 1,
|
||||||
select: { id: true },
|
select: { id: true },
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue