From bcc70fc337bbe7fb5e74609abaeee7cd3ede90a3 Mon Sep 17 00:00:00 2001 From: Leo Giovanetti Date: Wed, 16 Nov 2022 16:12:39 -0300 Subject: [PATCH] Stop relying on getInstalledAppPath --- packages/app-store/sendgrid/api/_postAdd.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/app-store/sendgrid/api/_postAdd.ts b/packages/app-store/sendgrid/api/_postAdd.ts index 31f94eb883..fbec85e005 100644 --- a/packages/app-store/sendgrid/api/_postAdd.ts +++ b/packages/app-store/sendgrid/api/_postAdd.ts @@ -7,7 +7,6 @@ import { defaultResponder } from "@calcom/lib/server"; import prisma from "@calcom/prisma"; import checkSession from "../../_utils/auth"; -import getInstalledAppPath from "../../_utils/getInstalledAppPath"; export async function getHandler(req: NextApiRequest, res: NextApiResponse) { 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 }); } - return { url: getInstalledAppPath({ variant: "other", slug: "sendgrid" }) }; + return { url: "/apps/installed/other?hl=sendgrid" }; } export default defaultResponder(getHandler);