Skip to content

Commit b702a89

Browse files
Address backward compatibility issue in GLaaS API (#200)
- For WS projects if asset_metadata is added - all information needs to be there as well as in fileDetails
1 parent 15a26e2 commit b702a89

File tree

1 file changed

+3
-0
lines changed
  • nx/blocks/loc/connectors/glaas

1 file changed

+3
-0
lines changed

nx/blocks/loc/connectors/glaas/api.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,9 @@ export async function addAssets({
127127
const assetMetadata = {
128128
assetName: glaasFilename,
129129
metadata: { 'source-preview-url': item.aemHref.replace(/\/index$/, '/') },
130+
// GLaaS backward compatibility issue for WS (En-GB) - hence adding here as well.
131+
assetType: 'SOURCE',
132+
targetLocales,
130133
...(item.translationMetadata && { langMetadata: item.translationMetadata }),
131134
};
132135
body.append('_asset_metadata_', new Blob(

0 commit comments

Comments
 (0)