Compare commits
2 Commits
79822d1931
...
be717d8f60
| Author | SHA1 | Date | |
|---|---|---|---|
| be717d8f60 | |||
|
|
ff2721e791 |
@ -768,7 +768,9 @@ export async function startMeeting(
|
||||
throw new Error(extractErrorMessage(data as unknown as ApiError));
|
||||
}
|
||||
|
||||
return (data as AppointmentResponse).appointment || data;
|
||||
// The API returns { action, metadata, recording_url }, not an Appointment
|
||||
// So we need to refetch the appointment to get the updated state
|
||||
return await getAppointmentDetail(id);
|
||||
}
|
||||
|
||||
export async function endMeeting(id: string): Promise<Appointment> {
|
||||
@ -790,5 +792,7 @@ export async function endMeeting(id: string): Promise<Appointment> {
|
||||
throw new Error(extractErrorMessage(data as unknown as ApiError));
|
||||
}
|
||||
|
||||
return (data as AppointmentResponse).appointment || data;
|
||||
// The API returns a response object, not an Appointment
|
||||
// So we need to refetch the appointment to get the updated state
|
||||
return await getAppointmentDetail(id);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user