feat: use req.user.dataValues.id to get current user
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user