Stop relying on getInstalledAppPath

pull/5501/head
Leo Giovanetti 2022-11-16 16:12:39 -03:00
parent bb1bb410fa
commit bcc70fc337
1 changed files with 1 additions and 2 deletions

View File

@ -7,7 +7,6 @@ import { defaultResponder } from "@calcom/lib/server";
import prisma from "@calcom/prisma"; import prisma from "@calcom/prisma";
import checkSession from "../../_utils/auth"; import checkSession from "../../_utils/auth";
import getInstalledAppPath from "../../_utils/getInstalledAppPath";
export async function getHandler(req: NextApiRequest, res: NextApiResponse) { export async function getHandler(req: NextApiRequest, res: NextApiResponse) {
const session = checkSession(req); const session = checkSession(req);
@ -33,7 +32,7 @@ export async function getHandler(req: NextApiRequest, res: NextApiResponse) {
throw new HttpError({ message: "Could not add Sendgrid app", statusCode: 500 }); throw new HttpError({ message: "Could not add Sendgrid app", statusCode: 500 });
} }
return { url: getInstalledAppPath({ variant: "other", slug: "sendgrid" }) }; return { url: "/apps/installed/other?hl=sendgrid" };
} }
export default defaultResponder(getHandler); export default defaultResponder(getHandler);