@@ -85,7 +85,16 @@ function ConfigurationController(ctx) {
85
85
if ( ! configuration ) {
86
86
return notFound ( 'Configuration not found' ) ;
87
87
}
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 ) ;
89
98
} ;
90
99
91
100
/**
@@ -118,11 +127,17 @@ function ConfigurationController(ctx) {
118
127
119
128
// Update sandbox configurations for each audit type
120
129
Object . keys ( sandboxConfigs ) . forEach ( ( auditType ) => {
130
+ // eslint-disable-next-line no-console
131
+ console . log ( `Updating sandbox config for audit type: ${ auditType } ` , sandboxConfigs [ auditType ] ) ;
121
132
config . updateSandboxAuditConfig ( auditType , sandboxConfigs [ auditType ] ) ;
122
133
} ) ;
123
134
124
135
// Save the updated configuration
136
+ // eslint-disable-next-line no-console
137
+ console . log ( 'Saving updated configuration with sandbox audits:' , config . state ?. sandboxAudits ) ;
125
138
await config . save ( ) ;
139
+ // eslint-disable-next-line no-console
140
+ console . log ( '[updateSandboxConfig] Configuration saved successfully' ) ;
126
141
127
142
return ok ( {
128
143
message : 'Sandbox configurations updated successfully' ,
0 commit comments