feat: pass userId to getActiveBrowserId

This commit is contained in:
amhsirak
2025-03-06 04:07:33 +05:30
parent 0385d29ded
commit 86be39a609

View File

@@ -151,8 +151,8 @@ export class WorkflowGenerator {
workflow: [], workflow: [],
}); });
socket.on('activeIndex', (data) => this.generatedData.lastIndex = parseInt(data)); socket.on('activeIndex', (data) => this.generatedData.lastIndex = parseInt(data));
socket.on('decision', async ({ pair, actionType, decision }) => { socket.on('decision', async ({ pair, actionType, decision, userId }) => {
const id = browserPool.getActiveBrowserId(); const id = browserPool.getActiveBrowserId(userId);
if (id) { if (id) {
// const activeBrowser = browserPool.getRemoteBrowser(id); // const activeBrowser = browserPool.getRemoteBrowser(id);
// const currentPage = activeBrowser?.getCurrentPage(); // const currentPage = activeBrowser?.getCurrentPage();