pages + correction coach dans detail Session

This commit is contained in:
trochas
2026-01-11 19:29:59 +01:00
parent ddb2b93489
commit c8c98cadeb
19 changed files with 292 additions and 88 deletions

View File

@@ -371,6 +371,17 @@ export async function getAllSessionsBetweenAPI(d1:Date,d2:Date):Promise<Session[
}
}
export async function getCoachOfSession(session:Session): Promise<Coach>{
try {
const response = await sessionService.getCoach(session.id);
const coach:Coach = new Coach(response.data);
return coach;
} catch (error) {
console.error("Error fetching coachs:", error);
throw error;
}
}
//COACH
export async function getAllCoach(): Promise<Coach[]> {
try {