E2E fixtures (#2747)

This commit is contained in:
Omar López authored and GitHub committed 2022-05-13 21:02:10 -06:00
1 parent 68e275ab07
commit 2bb6f33112
21 files changed
+491 -428

No files matched your search

+3 -1
View File
@@ -1,5 +1,7 @@
import type { NextApiRequest, NextApiResponse } from "next";
import prisma from "@calcom/prisma";
import { getSession } from "@lib/auth";
export default async function handler(req: NextApiRequest, res: NextApiResponse) {
@@ -12,7 +14,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
const userId = req.session.user.id;
try {
const installedApp = await prisma?.credential.findFirst({
const installedApp = await prisma.credential.findFirst({
where: {
type: appCredentialType as string,
userId: userId,