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,
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user