fix: remove website url in download recording (#6466)

Co-authored-by: Peer Richelsen <peeroke@gmail.com>
pull/6440/head^2
Udit Takkar 2023-01-14 05:33:13 +05:30 committed by GitHub
parent 965cff38c2
commit d462298e79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -3,7 +3,6 @@ import { useState } from "react";
import dayjs from "@calcom/dayjs";
import LicenseRequired from "@calcom/features/ee/common/components/v2/LicenseRequired";
import { WEBSITE_URL } from "@calcom/lib/constants";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { RecordingItemSchema } from "@calcom/prisma/zod-utils";
import { RouterOutputs, trpc } from "@calcom/trpc/react";
@ -73,7 +72,7 @@ export const ViewRecordingsDialog = (props: IViewRecordingsDialog) => {
const handleDownloadClick = async (recordingId: string) => {
try {
setRecordingId(recordingId);
const res = await fetch(`${WEBSITE_URL}/api/download-cal-video-recording?recordingId=${recordingId}`, {
const res = await fetch(`/api/download-cal-video-recording?recordingId=${recordingId}`, {
headers: {
"Content-Type": "application/json",
},