add verified mappools

This commit is contained in:
2026-03-06 16:33:19 +01:00
parent 10906560f4
commit 2a73be97b3
5 changed files with 77 additions and 17 deletions

View File

@@ -184,8 +184,9 @@ async function tryMatchFromQueue() {
}
async function selectMappoolForRating(avgElo: number) {
// Get all mappools with their slots
// Only use verified mappools
const pools = await db.query.mappool.findMany({
where: (m, { isNotNull }) => isNotNull(m.verifiedAt),
with: { slots: true }
});