Skip to content

Commit

Permalink
Merge pull request #482 from guardian/dblatcher/fix-aus-prod-office-f…
Browse files Browse the repository at this point in the history
…or-composer

send AUS to composer for production office, not AU
  • Loading branch information
dblatcher authored Nov 27, 2024
2 parents 0eaf661 + d644034 commit 8bd88af
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions public/components/content-list-drawer/content-list-drawer.js
Original file line number Diff line number Diff line change
Expand Up @@ -321,18 +321,21 @@ export function wfContentListDrawer($rootScope, config, $timeout, $window, conte
}

$scope.updateOffice = (office) => {
// because the australian prodOffice is 'AUS' in composer and 'AU' in workflow
const composerOffice = office.toUpperCase() === 'AU' ? 'AUS' : office;

// preview
wfComposerService.updateSetting(
$scope.contentItem.composerId,
"productionOffice",
office,
composerOffice,
)

// live
wfComposerService.updateSetting(
$scope.contentItem.composerId,
"productionOffice",
office,
composerOffice,
true
)
};
Expand Down

0 comments on commit 8bd88af

Please sign in to comment.