@@ -85,7 +85,16 @@ function ConfigurationController(ctx) {
8585 if ( ! configuration ) {
8686 return notFound ( 'Configuration not found' ) ;
8787 }
88- return ok ( ConfigurationDto . toJSON ( configuration ) ) ;
88+ // eslint-disable-next-line no-console
89+ console . log ( '[getLatest] Configuration version:' , configuration . getVersion ( ) ) ;
90+ // eslint-disable-next-line no-console
91+ console . log ( '[getLatest] Configuration state:' , configuration . state ) ;
92+ // eslint-disable-next-line no-console
93+ console . log ( '[getLatest] Configuration state.sandboxAudits:' , configuration . state ?. sandboxAudits ) ;
94+ const result = ConfigurationDto . toJSON ( configuration ) ;
95+ // eslint-disable-next-line no-console
96+ console . log ( '[getLatest] DTO result includes sandboxAudits:' , ! ! result . sandboxAudits ) ;
97+ return ok ( result ) ;
8998 } ;
9099
91100 /**
@@ -118,11 +127,17 @@ function ConfigurationController(ctx) {
118127
119128 // Update sandbox configurations for each audit type
120129 Object . keys ( sandboxConfigs ) . forEach ( ( auditType ) => {
130+ // eslint-disable-next-line no-console
131+ console . log ( `Updating sandbox config for audit type: ${ auditType } ` , sandboxConfigs [ auditType ] ) ;
121132 config . updateSandboxAuditConfig ( auditType , sandboxConfigs [ auditType ] ) ;
122133 } ) ;
123134
124135 // Save the updated configuration
136+ // eslint-disable-next-line no-console
137+ console . log ( 'Saving updated configuration with sandbox audits:' , config . state ?. sandboxAudits ) ;
125138 await config . save ( ) ;
139+ // eslint-disable-next-line no-console
140+ console . log ( '[updateSandboxConfig] Configuration saved successfully' ) ;
126141
127142 return ok ( {
128143 message : 'Sandbox configurations updated successfully' ,
0 commit comments