diff --git a/packages/app-store/zoomvideo/lib/VideoApiAdapter.ts b/packages/app-store/zoomvideo/lib/VideoApiAdapter.ts index 512c18e447c52f..b5c00af0b8cb1a 100644 --- a/packages/app-store/zoomvideo/lib/VideoApiAdapter.ts +++ b/packages/app-store/zoomvideo/lib/VideoApiAdapter.ts @@ -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"));