small fixes

pr/2623
CarinaWolli 2022-04-26 19:56:20 +02:00
parent f7cd5ffa49
commit 5d99c52075
2 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
import { ApiKeyType } from "@prisma/client";
import type { NextApiRequest, NextApiResponse } from "next";
import _metadata from "@calcom/app-store/zapierother/_metadata";
import _metadataZapier from "@calcom/app-store/zapierother/_metadata";
import { getSession } from "@lib/auth";
import prisma from "@lib/prisma";
@ -54,7 +54,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
},
});
if (integration?.type === _metadata.type) {
if (integration?.type === _metadataZapier.type) {
const apiKeyToDelete = await prisma.apiKey.findFirst({
where: {
userId: session?.user?.id,

View File

@ -30,7 +30,7 @@ export default function SetupInformation() {
});
}
if (appName === _packageZapier.name.toLowerCase()) {
if (appName === _packageZapier.name.toLowerCase() && status === "authenticated") {
return <ZapierSetup trpc={trpc}></ZapierSetup>;
}