feat: use pool id

This commit is contained in:
amhsirak
2025-04-12 19:24:42 +05:30
parent 7e054ea18a
commit 8e60df708f

View File

@@ -150,8 +150,7 @@ export class WorkflowGenerator {
});
socket.on('activeIndex', (data) => this.generatedData.lastIndex = parseInt(data));
socket.on('decision', async ({ pair, actionType, decision, userId }) => {
const id = browserPool.getActiveBrowserId(userId, "recording");
if (id) {
if (this.poolId) {
// const activeBrowser = browserPool.getRemoteBrowser(id);
// const currentPage = activeBrowser?.getCurrentPage();
if (!decision) {