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: [],
});
socket.on('activeIndex', (data) => this.generatedData.lastIndex = parseInt(data));
socket.on('decision', async ({ pair, actionType, decision }) => {
const id = browserPool.getActiveBrowserId();
socket.on('decision', async ({ pair, actionType, decision, userId }) => {
const id = browserPool.getActiveBrowserId(userId);
if (id) {
// const activeBrowser = browserPool.getRemoteBrowser(id);
// const currentPage = activeBrowser?.getCurrentPage();