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
parent
6e351a4b20
commit
bf275497a2
|
@ -153,7 +153,7 @@ const TeamsVideoApiAdapter = (credential: CredentialPayload): VideoApiAdapter =>
|
||||||
|
|
||||||
const resultObject = JSON.parse(resultString);
|
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" });
|
throw new HttpError({ statusCode: 500, message: "Error creating MS Teams meeting" });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -161,7 +161,7 @@ const TeamsVideoApiAdapter = (credential: CredentialPayload): VideoApiAdapter =>
|
||||||
type: "office365_video",
|
type: "office365_video",
|
||||||
id: resultObject.id,
|
id: resultObject.id,
|
||||||
password: "",
|
password: "",
|
||||||
url: resultObject.joinUrl,
|
url: resultObject.joinWebUrl || resultObject.joinUrl,
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue