- {idx + 1}.
+ {idx + 1}.
{business.name}
@@ -139,7 +139,7 @@ export default function ManageBusinesses({ businesses: data }: Props) {
-
+
@@ -163,7 +163,7 @@ export default function ManageBusinesses({ businesses: data }: Props) {
}
export const getServerSideProps: GetServerSideProps = async ({ locale, req }) => {
- const [data] = await requestAll(req, [["/admin/manage/businesses-admin", []]]);
+ const [data] = await requestAll(req, [["/admin/manage/businesses", []]]);
return {
props: {
diff --git a/packages/client/src/pages/business/[id]/[employeeId]/index.tsx b/packages/client/src/pages/business/[id]/[employeeId]/index.tsx
index bd5854621..2b880b825 100644
--- a/packages/client/src/pages/business/[id]/[employeeId]/index.tsx
+++ b/packages/client/src/pages/business/[id]/[employeeId]/index.tsx
@@ -39,7 +39,7 @@ export default function BusinessId(props: Props) {
async function handlePostDeletion() {
if (!tempPost) return;
- const { json } = await execute(`/businesses/${currentBusiness?.id}/posts/${tempPost.id}`, {
+ const { json } = await execute(`/businesses/posts/${currentBusiness?.id}/${tempPost.id}`, {
method: "DELETE",
data: { employeeId: currentEmployee?.id },
});
@@ -107,15 +107,15 @@ export default function BusinessId(props: Props) {
-