Added few functions
This commit is contained in:
@@ -39,6 +39,9 @@ export async function GET(
|
||||
email: true,
|
||||
},
|
||||
},
|
||||
participations: {
|
||||
select: { id: true },
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
@@ -35,6 +35,9 @@ export async function GET(request: NextRequest) {
|
||||
telephone: true,
|
||||
},
|
||||
},
|
||||
participations: {
|
||||
select: { id: true },
|
||||
},
|
||||
},
|
||||
orderBy: {
|
||||
updatedAt: 'desc' as const,
|
||||
|
||||
@@ -59,6 +59,9 @@ export async function GET(request: NextRequest) {
|
||||
telephone: true,
|
||||
},
|
||||
},
|
||||
participations: {
|
||||
select: { id: true },
|
||||
},
|
||||
},
|
||||
orderBy,
|
||||
take: limit ? parseInt(limit) : undefined,
|
||||
|
||||
Reference in New Issue
Block a user