Skip to content

Commit

Permalink
change zapier_other to zapier_automation (#4719)
Browse files Browse the repository at this point in the history
Co-authored-by: CarinaWolli <wollencarina@gmail.com>
  • Loading branch information
CarinaWolli and CarinaWolli authored Sep 27, 2022
1 parent 5da735c commit a6b1649
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/app-store/zapier/api/add.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
2 changes: 1 addition & 1 deletion packages/app-store/zapier/components/InstallAppButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<>
Expand Down
2 changes: 1 addition & 1 deletion packages/app-store/zapier/pages/setup/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion packages/app-store/zapier/pages/v2/setup/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a6b1649

Please sign in to comment.