Skip to content

Commit 3779960

Browse files
committed
A couple of style tweaks
1 parent 3fab193 commit 3779960

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

apps/webapp/app/routes/api.v1.runs.$runId.metadata.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 }) => {

packages/core/src/v3/runMetadata/operations.ts

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)