Stop relying on getInstalledAppPath
parent
bb1bb410fa
commit
bcc70fc337
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue