convertCatalogToLegacyFormat

Function

Converts the migrated catalog of a site model back into a legacy catalog format. As the new catalog format is much more flexible than the legacy format, only supported fields configurations (i.e., group ids) are transferred.

Parameters

Parameter Type Default Notes
modelToUpdate Required IModel

modified site model with a migrated catalog

currentModel Required IModel

currently persisted site model with a legacy catalog

Returns

site model with any catalog group changes reflected in a legacy format

Property Type Notes
item IItem
data Optional [key: string]: any
resources Optional [key: string]: any

Function defined in common/src/sites/_internal/convertCatalogToLegacyFormat.ts:16