File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -293,3 +293,8 @@ export const GET_AUDIT_DATA = {
293293 AUDIT_REPORT : "audit-report" ,
294294 FILTERALL : "all" ,
295295}
296+
297+ export const RESERVED_FIELD_MAPPINGS : Record < string , string > = {
298+ 'locale' : 'cm_locale'
299+ // Add other reserved fields if needed
300+ } ;
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import { v4 as uuidv4 } from 'uuid';
66import { JSDOM } from "jsdom" ;
77import { htmlToJson } from '@contentstack/json-rte-serializer' ;
88import { buildSchemaTree } from '../utils/content-type-creator.utils.js' ;
9- import { MIGRATION_DATA_CONFIG , LOCALE_MAPPER } from '../constants/index.js' ;
9+ import { MIGRATION_DATA_CONFIG , LOCALE_MAPPER , RESERVED_FIELD_MAPPINGS } from '../constants/index.js' ;
1010import { getLogMessage } from '../utils/index.js' ;
1111import customLogger from '../utils/custom-logger.utils.js' ;
1212import { orgService } from './org.service.js' ;
@@ -144,11 +144,6 @@ function getFieldValue(items: any, fieldName: string): any {
144144 return undefined ;
145145}
146146
147- // Reserved field helper function
148- const RESERVED_FIELD_MAPPINGS : Record < string , string > = {
149- 'locale' : 'cm_locale'
150- // Add other reserved fields if needed
151- } ;
152147
153148function getActualFieldUid ( uid : string , fieldUid : string ) : string {
154149 if ( RESERVED_FIELD_MAPPINGS [ uid ] ) {
You can’t perform that action at this time.
0 commit comments