Skip to content

Commit 6f77e0b

Browse files
conflict fixed
1 parent aee558e commit 6f77e0b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

server/src/routes/storage.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ router.put('/recordings/:id', requireSignIn, async (req: AuthenticatedRequest, r
259259

260260

261261
// Validate input
262-
if (!name && !limits && !credentials && !targetUrl) {
262+
if (!name && !limit && !credentials && !targetUrl) {
263263
return res.status(400).json({ error: 'Either "name", "limits", "credentials" or "target_url" must be provided.' });
264264
}
265265

@@ -311,8 +311,8 @@ router.put('/recordings/:id', requireSignIn, async (req: AuthenticatedRequest, r
311311
workflow = handleWorkflowActions(workflow, credentials);
312312
}
313313

314-
if (limits && Array.isArray(limits) && limits.length > 0) {
315-
for (const limitInfo of limits) {
314+
if (limit && Array.isArray(limit) && limit.length > 0) {
315+
for (const limitInfo of limit) {
316316
const { pairIndex, actionIndex, argIndex, limit } = limitInfo;
317317

318318
const pair = workflow[pairIndex];

0 commit comments

Comments
 (0)