Fix types for credentials

This commit is contained in:
Alan 2022-10-13 14:32:36 -06:00
parent 5c3afc7410
commit 1623305aea
2 changed files with 1 additions and 2 deletions

View File

@ -20,7 +20,7 @@ const ALL_APPS_MAP = Object.keys(appStoreMetadata).reduce((store, key) => {
}, {} as Record<string, AppMeta>);
const credentialData = Prisma.validator<Prisma.CredentialArgs>()({
select: { id: true, type: true, key: true, userId: true, appId: true },
select: { id: true, type: true, key: true, userId: true, appId: true, invalid: true },
});
type CredentialData = Prisma.CredentialGetPayload<typeof credentialData>;

View File

@ -8,7 +8,6 @@ import getApps from "@calcom/app-store/utils";
import { getUid } from "@calcom/lib/CalEventParser";
import logger from "@calcom/lib/logger";
import { performance } from "@calcom/lib/server/perfObserver";
import { App } from "@calcom/types/App";
import type { CalendarEvent, EventBusyDate, NewCalendarEventType } from "@calcom/types/Calendar";
import type { EventResult } from "@calcom/types/EventManager";