From 849de72a133e094686bc547f9a33201cb4eb91a9 Mon Sep 17 00:00:00 2001 From: Glauber Silva Date: Fri, 20 Sep 2024 17:46:53 -0300 Subject: [PATCH] refactor: change endpoint --- .../resources/admin/components/CampaignDetailsPage/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Campaigns/resources/admin/components/CampaignDetailsPage/index.tsx b/src/Campaigns/resources/admin/components/CampaignDetailsPage/index.tsx index 6fdf0fcead..781037b303 100644 --- a/src/Campaigns/resources/admin/components/CampaignDetailsPage/index.tsx +++ b/src/Campaigns/resources/admin/components/CampaignDetailsPage/index.tsx @@ -111,7 +111,7 @@ export default function CampaignsDetailsPage() { try { if (isPublishMode) { console.log('publishing...'); - const endpoint = `/publish/${campaign.properties.id}`; + const endpoint = `/${campaign.properties.id}/publish`; const response = await API.fetchWithArgs(endpoint, {}, 'PUT'); console.log('Campaign published.', response); location.reload();