fix: No type errors in build (#20075)
This commit is contained in:
1 parent
194719e7ba
commit
21d87d5a80
3 files changed
+10
-8
No files matched your search
@@ -1,6 +1,7 @@
|
||||
import dayjs from "@calcom/dayjs";
|
||||
import prisma from "@calcom/prisma";
|
||||
import type { EventType, Prisma, User, WorkflowReminder, WorkflowStep } from "@calcom/prisma/client";
|
||||
import type { EventType, User, WorkflowReminder, WorkflowStep } from "@calcom/prisma/client";
|
||||
import { Prisma } from "@calcom/prisma/client";
|
||||
import { WorkflowMethods } from "@calcom/prisma/enums";
|
||||
|
||||
type PartialWorkflowStep =
|
||||
@@ -118,7 +119,7 @@ export async function getAllRemindersToCancel(): Promise<RemindersToCancelType[]
|
||||
return remindersToCancel;
|
||||
}
|
||||
|
||||
export const select: Prisma.WorkflowReminderSelect = {
|
||||
export const select = Prisma.validator<Prisma.WorkflowReminderSelect>()({
|
||||
id: true,
|
||||
scheduledDate: true,
|
||||
isMandatoryReminder: true,
|
||||
@@ -193,7 +194,7 @@ export const select: Prisma.WorkflowReminderSelect = {
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
});
|
||||
|
||||
export async function getAllUnscheduledReminders(): Promise<PartialWorkflowReminder[]> {
|
||||
const whereFilter: Prisma.WorkflowReminderWhereInput = {
|
||||
|
||||
Reference in new issue
Block a user