fix: typecheck warnings
parent
621c1538e2
commit
f8caf08ccf
|
@ -125,7 +125,7 @@ export default function AppCard({
|
|||
<div className="flex h-64 w-full flex-col items-center justify-center gap-4 ">
|
||||
<p>This app has not been setup yet</p>
|
||||
<Link href={`/apps/${app.slug}/setup`}>
|
||||
<Button startIcon={Settings}>Setup</Button>
|
||||
<Button StartIcon={Settings}>Setup</Button>
|
||||
</Link>
|
||||
</div>
|
||||
)
|
||||
|
|
|
@ -9,6 +9,7 @@ import { HttpError as HttpCode } from "@calcom/lib/http-error";
|
|||
import { getTranslation } from "@calcom/lib/server/i18n";
|
||||
import prisma, { bookingMinimalSelect } from "@calcom/prisma";
|
||||
import { BookingStatus } from "@calcom/prisma/enums";
|
||||
import { credentialForCalendarServiceSelect } from "@calcom/prisma/selects/credential";
|
||||
import type { CalendarEvent } from "@calcom/types/Calendar";
|
||||
|
||||
import { getTimeFormatStringFromUserTimeFormat } from "../timeFormat";
|
||||
|
@ -34,7 +35,7 @@ export async function handlePaymentSuccess(paymentId: number, bookingId: number)
|
|||
select: {
|
||||
id: true,
|
||||
username: true,
|
||||
credentials: true,
|
||||
credentials: { select: credentialForCalendarServiceSelect },
|
||||
timeZone: true,
|
||||
timeFormat: true,
|
||||
email: true,
|
||||
|
|
|
@ -170,7 +170,7 @@ export const integrationsHandler = async ({ ctx, input }: IntegrationsOptions) =
|
|||
teams,
|
||||
isInstalled: !!userCredentialIds.length || !!teams.length || app.isGlobal,
|
||||
// FIXME: remove hardcoding and add per-app validation
|
||||
isSetup: !!credential?.key?.account_id || app.slug !== "alby",
|
||||
isSetup: !!(credential?.key as { account_id: string })?.account_id || app.slug !== "alby",
|
||||
};
|
||||
}
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue