change zapier_other to zapier_automation (#4719)
Co-authored-by: CarinaWolli <wollencarina@gmail.com>
This commit is contained in:
parent
5da735c418
commit
a6b16490c0
|
@ -6,7 +6,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
|
|||
if (!req.session?.user?.id) {
|
||||
return res.status(401).json({ message: "You must be logged in to do this" });
|
||||
}
|
||||
const appType = "zapier_other";
|
||||
const appType = "zapier_automation";
|
||||
try {
|
||||
const alreadyInstalled = await prisma.credential.findFirst({
|
||||
where: {
|
||||
|
|
|
@ -3,7 +3,7 @@ import type { InstallAppButtonProps } from "@calcom/app-store/types";
|
|||
import useAddAppMutation from "../../_utils/useAddAppMutation";
|
||||
|
||||
export default function InstallAppButton(props: InstallAppButtonProps) {
|
||||
const mutation = useAddAppMutation("zapier_other");
|
||||
const mutation = useAddAppMutation("zapier_automation");
|
||||
|
||||
return (
|
||||
<>
|
||||
|
|
|
@ -24,7 +24,7 @@ export default function ZapierSetup(props: IZapierSetupProps) {
|
|||
|
||||
const deleteApiKey = trpc.useMutation("viewer.apiKeys.delete");
|
||||
const zapierCredentials: { credentialIds: number[] } | undefined = integrations.data?.items.find(
|
||||
(item: { type: string }) => item.type === "zapier_other"
|
||||
(item: { type: string }) => item.type === "zapier_automation"
|
||||
);
|
||||
const [credentialId] = zapierCredentials?.credentialIds || [false];
|
||||
const showContent = integrations.data && integrations.isSuccess && credentialId;
|
||||
|
|
|
@ -23,7 +23,7 @@ export default function ZapierSetup(props: IZapierSetupProps) {
|
|||
|
||||
const deleteApiKey = trpc.useMutation("viewer.apiKeys.delete");
|
||||
const zapierCredentials: { credentialIds: number[] } | undefined = integrations.data?.items.find(
|
||||
(item: { type: string }) => item.type === "zapier_other"
|
||||
(item: { type: string }) => item.type === "zapier_automation"
|
||||
);
|
||||
const [credentialId] = zapierCredentials?.credentialIds || [false];
|
||||
const showContent = integrations.data && integrations.isSuccess && credentialId;
|
||||
|
|
Loading…
Reference in New Issue
Block a user