chore: do not route to meeting-ended page for daily link used for testing (#20371)
* chore: remove 14 day buffer for QA * chore: check uid --------- Co-authored-by: Omar López <zomars@me.com>
This commit is contained in:
1 parent
af51ce1890
commit
bc9d76e7da
1 file changed
+5
-1
@@ -72,7 +72,11 @@ export async function getServerSideProps(context: GetServerSidePropsContext) {
|
||||
|
||||
//find out if the meeting is in the past
|
||||
const isPast = booking?.endTime <= exitDate;
|
||||
if (isPast) {
|
||||
const testingUid =
|
||||
CAL_VIDEO_MEETING_LINK_FOR_TESTING && CAL_VIDEO_MEETING_LINK_FOR_TESTING?.split("/").pop();
|
||||
const isTestingLink = booking?.uid === testingUid;
|
||||
|
||||
if (isPast && !isTestingLink) {
|
||||
return {
|
||||
redirect: {
|
||||
destination: `/video/meeting-ended/${booking?.uid}`,
|
||||
|
||||
Reference in new issue
Block a user