MS Teams use `joinWebUrl` from response body (#5886)

* Add joinWebUrl to event

* Remove console.log

Co-authored-by: alannnc <alannnc@gmail.com>
pull/5868/head
Joe Au-Yeung 2022-12-07 14:56:15 -05:00 committed by GitHub
parent 6e351a4b20
commit bf275497a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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,
});
},
};