File tree 2 files changed +11
-10
lines changed
packages/core/src/v3/runMetadata
2 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ const { action } = createActionApiRoute(
12
12
{
13
13
params : ParamsSchema ,
14
14
body : UpdateMetadataRequestBody ,
15
- maxContentLength : 1024 * 1024 * 2 , // 3MB
15
+ maxContentLength : 1024 * 1024 * 2 , // 2MB
16
16
method : "PUT" ,
17
17
} ,
18
18
async ( { authentication, body, params } ) => {
Original file line number Diff line number Diff line change @@ -182,32 +182,33 @@ export function collapseOperations(
182
182
// Process operations in order
183
183
for ( const operation of operations ) {
184
184
switch ( operation . type ) {
185
- case "increment" :
185
+ case "increment" : {
186
186
const currentIncrement = incrementsByKey . get ( operation . key ) || 0 ;
187
187
incrementsByKey . set ( operation . key , currentIncrement + operation . value ) ;
188
188
break ;
189
-
190
- case "set" :
189
+ }
190
+ case "set" : {
191
191
// Keep only the last set operation for each key
192
192
setsByKey . set ( operation . key , operation ) ;
193
193
break ;
194
-
195
- case "delete" :
194
+ }
195
+ case "delete" : {
196
196
// Keep only one delete operation per key
197
197
deletesByKey . add ( operation . key ) ;
198
198
break ;
199
-
199
+ }
200
200
case "append" :
201
201
case "remove" :
202
- case "update" :
202
+ case "update" : {
203
203
// Preserve these operations as-is to maintain correctness
204
204
preservedOperations . push ( operation ) ;
205
205
break ;
206
-
207
- default :
206
+ }
207
+ default : {
208
208
// Handle any future operation types by preserving them
209
209
preservedOperations . push ( operation ) ;
210
210
break ;
211
+ }
211
212
}
212
213
}
213
214
You can’t perform that action at this time.
0 commit comments