fix: No type errors in build (#20075)

This commit is contained in:
Sarvesh Bajaj authored and GitHub committed 2025-03-14 07:39:10 +00:00
1 parent 194719e7ba
commit 21d87d5a80
3 files changed
+10 -8

No files matched your search

@@ -1,4 +1,4 @@
import type { Prisma } from "@prisma/client";
import { Prisma } from "@prisma/client";
import { prisma } from "@calcom/prisma";
import { credentialForCalendarServiceSelect } from "@calcom/prisma/selects/credential";
@@ -201,7 +201,8 @@ export class SelectedCalendarRepository {
}
static async findMany({ where, select, orderBy }: FindManyArgs) {
return await prisma.selectedCalendar.findMany({ where, select, orderBy });
const args = Prisma.validator<Prisma.SelectedCalendarFindManyArgs>()({ where, select, orderBy });
return await prisma.selectedCalendar.findMany(args);
}
static async findUniqueOrThrow({ where }: { where: Prisma.SelectedCalendarWhereInput }) {