fix: include participants in getManageableTournaments query
This commit is contained in:
@@ -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' }
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user