File tree Expand file tree Collapse file tree
src/commands/content-item Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ describe('sync.service', () => {
5757 expect ( hub . related . jobs . createDeepSyncJob ) . toHaveBeenCalledWith ( {
5858 label : `dc-cli content item: sync service test` ,
5959 forceSync : false ,
60- ignoreSchemaValidation : false ,
60+ ignoreSchemaValidation : true ,
6161 destinationHubId : DEST_HUB_ID ,
6262 input : { rootContentItemIds : [ CONTENT_ITEM_ID ] }
6363 } ) ;
@@ -81,7 +81,7 @@ describe('sync.service', () => {
8181 expect ( hub . related . jobs . createDeepSyncJob ) . toHaveBeenCalledWith ( {
8282 label : `dc-cli content item: sync service test` ,
8383 forceSync : false ,
84- ignoreSchemaValidation : false ,
84+ ignoreSchemaValidation : true ,
8585 destinationHubId : DEST_HUB_ID ,
8686 input : { rootContentItemIds : [ CONTENT_ITEM_ID ] }
8787 } ) ;
Original file line number Diff line number Diff line change @@ -19,11 +19,12 @@ export class ContentItemSyncService {
1919 action : ( job : Job ) => void ,
2020 options : { ignoreSchemaValidation ?: boolean ; forceSync ?: boolean }
2121 ) : void {
22+ console . log ( options . ignoreSchemaValidation , options . ignoreSchemaValidation ?? true ) ;
2223 this . queue . add ( async ( ) => {
2324 const createSyncJob = await hub . related . jobs . createDeepSyncJob (
2425 new CreateDeepSyncJobRequest ( {
2526 label : `dc-cli content item: ${ contentItem . label } ` ,
26- ignoreSchemaValidation : options . ignoreSchemaValidation || false ,
27+ ignoreSchemaValidation : options . ignoreSchemaValidation ?? true ,
2728 forceSync : options . forceSync || false ,
2829 destinationHubId,
2930 input : { rootContentItemIds : [ contentItem . id ] }
You can’t perform that action at this time.
0 commit comments