convertCatalogToLegacyFormat
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
Function defined in packages/common/src/sites/_internal/convertCatalogToLegacyFormat.ts:17