diff --git a/libs/service/src/api/dimentorin/index.ts b/libs/service/src/api/dimentorin/index.ts index 8f732c3..01cecfe 100644 --- a/libs/service/src/api/dimentorin/index.ts +++ b/libs/service/src/api/dimentorin/index.ts @@ -17,7 +17,7 @@ export const getMentors = async ( url: '/dimentorin/mentors/public', params, }); - return data; + return data.data; }; export const getMentorDetail = async (id: string): Promise => { @@ -25,7 +25,7 @@ export const getMentorDetail = async (id: string): Promise => { method: 'GET', url: `/dimentorin/mentors/public/${id}`, }); - return data; + return data.data; }; export const getMentorMe = async (): Promise => { @@ -33,7 +33,7 @@ export const getMentorMe = async (): Promise => { method: 'GET', url: '/dimentorin/mentors/me', }); - return data; + return data.data; }; export const getMentorMeStatus = async (): Promise<{ status: string }> => { @@ -41,7 +41,7 @@ export const getMentorMeStatus = async (): Promise<{ status: string }> => { method: 'GET', url: '/dimentorin/mentors/me/status', }); - return data; + return data.data; }; export const getMentorAvailability = async ( @@ -51,7 +51,7 @@ export const getMentorAvailability = async ( method: 'GET', url: `/dimentorin/mentors/${id}/availability`, }); - return data; + return data.data; }; export const getMentorSessions = async ( @@ -61,7 +61,7 @@ export const getMentorSessions = async ( method: 'GET', url: `/dimentorin/mentors/${id}/sessions`, }); - return data; + return data.data; }; export const getMySessions = async (): Promise => { @@ -69,7 +69,7 @@ export const getMySessions = async (): Promise => { method: 'GET', url: '/dimentorin/sessions/me', }); - return data; + return data.data; }; export const postBookSession = async (