fear: pass userId

This commit is contained in:
karishmas6
2024-10-27 17:56:02 +05:30
parent 7cb38e7005
commit e5b80045d5

View File

@@ -133,13 +133,15 @@ router.put('/runs/:id', requireSignIn, async (req: AuthenticatedRequest, res) =>
}; };
} }
console.log(`Proxy config for run: ${JSON.stringify(proxyOptions)}`)
const id = createRemoteBrowserForRun({ const id = createRemoteBrowserForRun({
browser: chromium, browser: chromium,
launchOptions: { launchOptions: {
headless: true, headless: true,
proxy: proxyOptions.server ? proxyOptions : undefined, proxy: proxyOptions.server ? proxyOptions : undefined,
} }
}); }, req.user.id);
const runId = uuid(); const runId = uuid();