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 type { GetServerSidePropsContext } from "next";
import { serverSideTranslations } from "next-i18next/serverSideTranslations";
import { z } from "zod";
@@ -78,7 +78,7 @@ const getAppBySlug = async (appSlug: string) => {
};
const getEventTypes = async (userId: number, teamIds?: number[]) => {
const eventTypeSelect: Prisma.EventTypeSelect = {
const eventTypeSelect = Prisma.validator<Prisma.EventTypeSelect>()({
id: true,
description: true,
durationLimits: true,
@@ -99,7 +99,7 @@ const getEventTypes = async (userId: number, teamIds?: number[]) => {
userId: true,
destinationCalendar: true,
bookingFields: true,
};
});
let eventTypeGroups: TEventTypeGroup[] | null = [];
if (teamIds && teamIds.length > 0) {