Skip to content

Commit 302ccd1

Browse files
committed
feat: revert browser id changes
1 parent 9d3c55b commit 302ccd1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

server/src/routes/storage.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ router.put('/runs/:id', requireSignIn, async (req: AuthenticatedRequest, res) =>
477477

478478
console.log(`Proxy config for run: ${JSON.stringify(proxyOptions)}`)
479479

480-
// const id = createRemoteBrowserForRun(req.user.id);
480+
const id = createRemoteBrowserForRun(req.user.id);
481481

482482
const runId = uuid();
483483

@@ -488,7 +488,7 @@ router.put('/runs/:id', requireSignIn, async (req: AuthenticatedRequest, res) =>
488488
robotMetaId: recording.recording_meta.id,
489489
startedAt: new Date().toLocaleString(),
490490
finishedAt: '',
491-
browserId: req.params.id,
491+
browserId: id,
492492
interpreterSettings: req.body,
493493
log: '',
494494
runId,
@@ -499,13 +499,13 @@ router.put('/runs/:id', requireSignIn, async (req: AuthenticatedRequest, res) =>
499499

500500
const job = await workflowQueue.add(
501501
'run workflow',
502-
{ id: req.params.id, runId, userId: req.user.id, isScheduled: false },
502+
{ id, runId, userId: req.user.id, isScheduled: false },
503503
);
504504

505505
const plainRun = run.toJSON();
506506

507507
return res.send({
508-
browserId: req.params.id,
508+
browserId: id,
509509
runId: plainRun.runId,
510510
});
511511
} catch (e) {

0 commit comments

Comments
 (0)