pages + correction coach dans detail Session
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user