From 1be6ed5339c20cad142391374148b1e9f8f6b884 Mon Sep 17 00:00:00 2001 From: Sunil Kamat <107644736+sukamat@users.noreply.github.com> Date: Tue, 29 Aug 2023 13:28:20 -0700 Subject: [PATCH] MWPW-135603: FG Status API payload update (#1177) * MWPW-135603: FG Status API payload update * MWPW-135603: Updated payload for delete status --- tools/floodgate/js/floodgate.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/tools/floodgate/js/floodgate.js b/tools/floodgate/js/floodgate.js index fd3d166161..bf02458d6a 100644 --- a/tools/floodgate/js/floodgate.js +++ b/tools/floodgate/js/floodgate.js @@ -52,17 +52,13 @@ async function promoteContentAction(project, config) { async function fetchStatusAction(project, config) { // fetch copy status - let params = { - projectExcelPath: project.excelPath, - projectRoot: config.sp.rootFolders, - }; + let params = { type: 'copy', projectExcelPath: project.excelPath, shareUrl: config.sp.shareUrl }; const copyStatus = await postData(config.sp.aioStatusAction, params); // fetch promote status - params = { projectRoot: config.sp.fgRootFolder }; + params = { type: 'promote', fgShareUrl: config.sp.fgShareUrl }; const promoteStatus = await postData(config.sp.aioStatusAction, params); // fetch delete status - const DELETE_ACTION = 'deleteAction~'; - params = { projectRoot: `${DELETE_ACTION}${config.sp.fgRootFolder}` }; + params = { type: 'delete', fgShareUrl: config.sp.fgShareUrl }; const deleteStatus = await postData(config.sp.aioStatusAction, params); updateProjectStatusUI({ copyStatus, promoteStatus, deleteStatus }); }