feat: use req.user.dataValues.id to get current user

This commit is contained in:
karishmas6
2024-10-12 21:09:07 +05:30
parent f01117471a
commit c080ee7786

View File

@@ -358,7 +358,8 @@ 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.user.id);
const result = await handleRunRecording(req.params.id, req.user.dataValues.id);
console.log(`Result`, result);
const response = {
statusCode: 200,