File tree Expand file tree Collapse file tree 2 files changed +11
-10
lines changed
packages/core/src/v3/runMetadata Expand file tree Collapse file tree 2 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ const { action } = createActionApiRoute(
1212 {
1313 params : ParamsSchema ,
1414 body : UpdateMetadataRequestBody ,
15- maxContentLength : 1024 * 1024 * 2 , // 3MB
15+ maxContentLength : 1024 * 1024 * 2 , // 2MB
1616 method : "PUT" ,
1717 } ,
1818 async ( { authentication, body, params } ) => {
Original file line number Diff line number Diff line change @@ -182,32 +182,33 @@ export function collapseOperations(
182182 // Process operations in order
183183 for ( const operation of operations ) {
184184 switch ( operation . type ) {
185- case "increment" :
185+ case "increment" : {
186186 const currentIncrement = incrementsByKey . get ( operation . key ) || 0 ;
187187 incrementsByKey . set ( operation . key , currentIncrement + operation . value ) ;
188188 break ;
189-
190- case "set" :
189+ }
190+ case "set" : {
191191 // Keep only the last set operation for each key
192192 setsByKey . set ( operation . key , operation ) ;
193193 break ;
194-
195- case "delete" :
194+ }
195+ case "delete" : {
196196 // Keep only one delete operation per key
197197 deletesByKey . add ( operation . key ) ;
198198 break ;
199-
199+ }
200200 case "append" :
201201 case "remove" :
202- case "update" :
202+ case "update" : {
203203 // Preserve these operations as-is to maintain correctness
204204 preservedOperations . push ( operation ) ;
205205 break ;
206-
207- default :
206+ }
207+ default : {
208208 // Handle any future operation types by preserving them
209209 preservedOperations . push ( operation ) ;
210210 break ;
211+ }
211212 }
212213 }
213214
You can’t perform that action at this time.
0 commit comments