Stop relying on getInstalledAppPath

This commit is contained in:
Leo Giovanetti 2022-11-16 16:12:39 -03:00
parent bb1bb410fa
commit bcc70fc337

View File

@ -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);