Skip to content

Commit

Permalink
Fix - CRM - Accounts
Browse files Browse the repository at this point in the history
- updated bad endpoint url on delete account
  • Loading branch information
pdovhomilja committed Nov 7, 2023
1 parent f27808c commit 5ccb769
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/[locale]/(routes)/admin/_components/ResendCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ const ResendCard = async () => {
serviceKey: parsed.serviceKey,
},
});
revalidatePath("/admin");
}
revalidatePath("/admin");
};

const resend_key = await prismadb.systemServices.findFirst({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export function DataTableRowActions<TData>({
const onDelete = async () => {
setLoading(true);
try {
await axios.delete(`/api/crm/accounts/${account?.id}`);
await axios.delete(`/api/crm/account/${account.id}`);
toast({
title: "Success",
description: "Opportunity has been deleted",
Expand Down

6 comments on commit 5ccb769

@vercel
Copy link

@vercel vercel bot commented on 5ccb769 Nov 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 5ccb769 Nov 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 5ccb769 Nov 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nextcrm-others – ./

nextcrm-others-e-osvc.vercel.app
nextcrm-others-git-main-e-osvc.vercel.app
others.nextcrm.io

@vercel
Copy link

@vercel vercel bot commented on 5ccb769 Nov 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nextcrm-test – ./

nextcrm-test-e-osvc.vercel.app
nextcrm-test-git-main-e-osvc.vercel.app
test.nextcrm.io

@vercel
Copy link

@vercel vercel bot commented on 5ccb769 Nov 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 5ccb769 Nov 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nextcrm-demo – ./

nextcrm-demo-git-main-e-osvc.vercel.app
demo.nextcrm.io
nextcrm-demo-e-osvc.vercel.app

Please sign in to comment.