Skip to content

Commit

Permalink
MWPW-135603: FG Status API payload update (#1177)
Browse files Browse the repository at this point in the history
* MWPW-135603: FG Status API payload update

* MWPW-135603: Updated payload for delete status
  • Loading branch information
sukamat authored Aug 29, 2023
1 parent c510de9 commit 1be6ed5
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions tools/floodgate/js/floodgate.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
}
Expand Down

0 comments on commit 1be6ed5

Please sign in to comment.