fix: Issue with zoom meetings getting "invalid Meeting ID" (#16669)
* Update VideoApiAdapter.ts * Update VideoApiAdapter.ts --------- Co-authored-by: Amit Sharma <74371312+Amit91848@users.noreply.github.com>
This commit is contained in:
co-authored by
Amit Sharma
parent
bc34e67191
commit
f642a6ebeb
@@ -332,13 +332,16 @@ const ZoomVideoApiAdapter = (credential: CredentialPayload): VideoApiAdapter =>
|
||||
},
|
||||
body: JSON.stringify(await translateEvent(event)),
|
||||
});
|
||||
|
||||
const updatedMeeting = await fetchZoomApi(`meetings/${bookingRef.uid}`);
|
||||
const result = zoomEventResultSchema.parse(updatedMeeting);
|
||||
|
||||
return Promise.resolve({
|
||||
return {
|
||||
type: "zoom_video",
|
||||
id: bookingRef.meetingId as string,
|
||||
password: bookingRef.meetingPassword as string,
|
||||
url: bookingRef.meetingUrl as string,
|
||||
});
|
||||
id: result.id.toString(),
|
||||
password: result.password || "",
|
||||
url: result.join_url,
|
||||
};
|
||||
} catch (err) {
|
||||
log.error("Failed to update meeting", safeStringify(err));
|
||||
return Promise.reject(new Error("Failed to update meeting"));
|
||||
|
||||
Reference in New Issue
Block a user