Added few functions

This commit is contained in:
2026-02-16 14:43:02 +01:00
parent 0c908a21ac
commit 1ec4c935c9
31 changed files with 352 additions and 35 deletions

View File

@@ -39,6 +39,9 @@ export async function GET(
email: true,
},
},
participations: {
select: { id: true },
},
},
});

View File

@@ -35,6 +35,9 @@ export async function GET(request: NextRequest) {
telephone: true,
},
},
participations: {
select: { id: true },
},
},
orderBy: {
updatedAt: 'desc' as const,

View File

@@ -59,6 +59,9 @@ export async function GET(request: NextRequest) {
telephone: true,
},
},
participations: {
select: { id: true },
},
},
orderBy,
take: limit ? parseInt(limit) : undefined,