fix: include participants in getManageableTournaments query

This commit is contained in:
2026-03-30 21:34:16 -07:00
parent c27aec72fc
commit d821dd7ce2
2 changed files with 6 additions and 0 deletions
@@ -178,6 +178,7 @@ describe('Tournament Permissions', () => {
expect(result).toEqual(mockTournaments);
expect(prisma.event.findMany).toHaveBeenCalledWith({
where: { eventType: 'tournament' },
include: { participants: true },
orderBy: { createdAt: 'desc' }
});
});
@@ -201,6 +202,7 @@ describe('Tournament Permissions', () => {
eventType: 'tournament',
ownerId: 'tour-admin-1'
},
include: { participants: true },
orderBy: { createdAt: 'desc' }
});
});
@@ -224,6 +226,7 @@ describe('Tournament Permissions', () => {
eventType: 'tournament',
status: { not: 'draft' }
},
include: { participants: true },
orderBy: { createdAt: 'desc' }
});
});