completed location deletion

This commit is contained in:
2024-01-05 15:19:15 +01:00
parent 94fee6f775
commit 2413ab9240
4 changed files with 25 additions and 6 deletions

View File

@@ -1,4 +1,5 @@
import { deleteBillById } from '@/app/lib/billActions';
import { revalidatePath } from 'next/cache';
import { notFound, redirect } from 'next/navigation';
export default async function Page({ params:{ id } }: { params: { id:string } }) {
@@ -8,5 +9,6 @@ export default async function Page({ params:{ id } }: { params: { id:string } })
return(notFound());
}
revalidatePath('/');
redirect(`/`);
}