Compare commits

..

No commits in common. "be717d8f60780580b50cdea6cdd70d7be45781db" and "79822d1931dead8f8b834bcec39c197c3db07b62" have entirely different histories.

View File

@ -768,9 +768,7 @@ export async function startMeeting(
throw new Error(extractErrorMessage(data as unknown as ApiError)); throw new Error(extractErrorMessage(data as unknown as ApiError));
} }
// The API returns { action, metadata, recording_url }, not an Appointment return (data as AppointmentResponse).appointment || data;
// So we need to refetch the appointment to get the updated state
return await getAppointmentDetail(id);
} }
export async function endMeeting(id: string): Promise<Appointment> { export async function endMeeting(id: string): Promise<Appointment> {
@ -792,7 +790,5 @@ export async function endMeeting(id: string): Promise<Appointment> {
throw new Error(extractErrorMessage(data as unknown as ApiError)); throw new Error(extractErrorMessage(data as unknown as ApiError));
} }
// The API returns a response object, not an Appointment return (data as AppointmentResponse).appointment || data;
// So we need to refetch the appointment to get the updated state
return await getAppointmentDetail(id);
} }