MS Teams use joinWebUrl from response body (#5886)

* Add joinWebUrl to event

* Remove console.log

Co-authored-by: alannnc <alannnc@gmail.com>
This commit is contained in:
Joe Au-Yeung
2022-12-07 12:56:15 -07:00
committed by GitHub
co-authored by alannnc
parent 6e351a4b20
commit bf275497a2
@@ -153,7 +153,7 @@ const TeamsVideoApiAdapter = (credential: CredentialPayload): VideoApiAdapter =>
const resultObject = JSON.parse(resultString);
if (!resultObject.id || !resultObject.joinUrl) {
if (!resultObject.id || !resultObject.joinUrl || !resultObject.joinWebUrl) {
throw new HttpError({ statusCode: 500, message: "Error creating MS Teams meeting" });
}
@@ -161,7 +161,7 @@ const TeamsVideoApiAdapter = (credential: CredentialPayload): VideoApiAdapter =>
type: "office365_video",
id: resultObject.id,
password: "",
url: resultObject.joinUrl,
url: resultObject.joinWebUrl || resultObject.joinUrl,
});
},
};