diff --git a/app/api/trajets/[id]/route.ts b/app/api/trajets/[id]/route.ts
index a20b655..a2d48b3 100644
--- a/app/api/trajets/[id]/route.ts
+++ b/app/api/trajets/[id]/route.ts
@@ -39,6 +39,9 @@ export async function GET(
email: true,
},
},
+ participations: {
+ select: { id: true },
+ },
},
});
diff --git a/app/api/trajets/archives/route.ts b/app/api/trajets/archives/route.ts
index 905a2b6..3c55524 100644
--- a/app/api/trajets/archives/route.ts
+++ b/app/api/trajets/archives/route.ts
@@ -35,6 +35,9 @@ export async function GET(request: NextRequest) {
telephone: true,
},
},
+ participations: {
+ select: { id: true },
+ },
},
orderBy: {
updatedAt: 'desc' as const,
diff --git a/app/api/trajets/route.ts b/app/api/trajets/route.ts
index aa5b4d3..7f35522 100644
--- a/app/api/trajets/route.ts
+++ b/app/api/trajets/route.ts
@@ -59,6 +59,9 @@ export async function GET(request: NextRequest) {
telephone: true,
},
},
+ participations: {
+ select: { id: true },
+ },
},
orderBy,
take: limit ? parseInt(limit) : undefined,
diff --git a/app/dashboard/calendrier/page.tsx b/app/dashboard/calendrier/page.tsx
index 46f8bda..2c571d3 100644
--- a/app/dashboard/calendrier/page.tsx
+++ b/app/dashboard/calendrier/page.tsx
@@ -19,13 +19,6 @@ export default async function CalendrierPage() {
return (
- Gestion des trajets et planning des chauffeurs
-
- Calendrier
-
-
{h.adherentNom}
{formatDate(h.date)}
+{getParticipationRef(h.id)}
+ Gestion des trajets et planning des chauffeurs +
+