Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

Update browser.ts

Nicolasb0180cf1a70c
diff --git a/apps/api/src/controllers/v2/browser.ts b/apps/api/src/controllers/v2/browser.ts
index 5c332e7ec..43030ea2c 100644
--- a/apps/api/src/controllers/v2/browser.ts
+++ b/apps/api/src/controllers/v2/browser.ts
@@ -468,10 +468,11 @@ export async function browserWebhookDestroyedController(
return res.status(401).json({ error: "Unauthorized" });
}
- const { browserId } = req.body as { browserId?: string };
- if (!browserId) {
+ const { sessionId } = req.body as { sessionId?: string };
+ if (!sessionId) {
return res.status(400).json({ error: "Missing browserId" });
}
+ let browserId = sessionId;
logger.info("Received destroyed webhook from browser service", { browserId });