login fix
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user