Skip to content

Commit

Permalink
fix: Issue with zoom meetings getting "invalid Meeting ID" (calcom#16669
Browse files Browse the repository at this point in the history
)

* Update VideoApiAdapter.ts

* Update VideoApiAdapter.ts

---------

Co-authored-by: Amit Sharma <[email protected]>
  • Loading branch information
askadityapandey and Amit91848 authored Sep 23, 2024
1 parent bc34e67 commit f642a6e
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions packages/app-store/zoomvideo/lib/VideoApiAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand Down

0 comments on commit f642a6e

Please sign in to comment.