fix: get user id from req.user.id

This commit is contained in:
karishmas6
2024-10-12 16:33:47 +05:30
parent 66add9c0c1
commit f01117471a

View File

@@ -358,7 +358,7 @@ function cleanupSocketListeners(socket: Socket, browserId: string, id: string) {
router.post("/robots/:id/runs", requireAPIKey, async (req: Request, res: Response) => {
try {
const result = await handleRunRecording(req.params.id, req.body.userId);
const result = await handleRunRecording(req.params.id, req.user.id);
const response = {
statusCode: 200,