first (part 2: other directories)
Deploy Iddaai Backend / build-and-deploy (push) Failing after 18s

This commit is contained in:
2026-04-16 15:11:25 +03:00
parent 7814e0bc6b
commit 2f0b85a0c7
203 changed files with 59989 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
import { PrismaClient } from '@prisma/client';
const prisma = new PrismaClient();
async function checkSlugs() {
console.log("🔍 Checking League Slugs...");
// En çok maçı olan ilk 50 ligin slug'ını getir
const leagues = await prisma.league.findMany({
where: { sport: 'football' },
select: { name: true, competitionSlug: true, _count: { select: { matches: true } } },
orderBy: { matches: { _count: 'desc' } },
take: 50
});
leagues.forEach(l => {
console.log(`Slug: '${l.competitionSlug}' | Name: '${l.name}' | Matches: ${l._count.matches}`);
});
}
checkSlugs()
.catch(e => console.error(e))
.finally(async () => await prisma.$disconnect());