login fix

This commit is contained in:
tuanvu
2026-01-08 16:36:52 +01:00
parent ba45985394
commit 8a2cfbd2f7
2 changed files with 20 additions and 8 deletions

View File

@@ -128,7 +128,7 @@ export async function postActivityAPI(session: Session, activity: Activite){
export async function postAthlete(athlete: Athlete):Promise<Athlete>{
try {
const response = await api.post<Athlete>("/athlete/create/",athlete);
const response = await api.post<Athlete>("/athlete/create/",athlete.toDTO);
console.log(response);
return response.data;
} catch (error) {