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,

View File

@@ -19,13 +19,6 @@ export default async function CalendrierPage() {
return (
<DashboardLayout user={user}>
<div className="p-4 sm:p-6 lg:p-8">
<h1 className="text-2xl sm:text-3xl font-semibold text-cblack mb-2">
Calendrier
</h1>
<p className="text-xs sm:text-sm text-cgray mb-6 sm:mb-8">
Gestion des trajets et planning des chauffeurs
</p>
<CalendrierPageContent />
</div>
</DashboardLayout>