feat: server socket management for multiple browsers
This commit is contained in:
@@ -80,7 +80,7 @@ router.get('/stop/:browserId', requireSignIn, async (req: AuthenticatedRequest,
|
||||
if (!req.user) {
|
||||
return res.status(401).send('User not authenticated');
|
||||
}
|
||||
const success = await destroyRemoteBrowser(req.user?.id, req.params.browserId);
|
||||
const success = await destroyRemoteBrowser(req.params.browserId, req.user?.id);
|
||||
return res.send(success);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user