fix: return response.data.schedule

This commit is contained in:
karishmas6
2024-10-23 03:16:57 +05:30
parent 51947a1ccc
commit cc9df1c6eb

View File

@@ -152,7 +152,7 @@ export const getSchedule = async (id: string) => {
try {
const response = await axios.get(`http://localhost:8080/storage/schedule/${id}`);
if (response.status === 200) {
return response.data;
return response.data.schedule;
} else {
throw new Error(`Couldn't retrieve schedule for recording ${id}`);
}