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) => {
|
router.post("/robots/:id/runs", requireAPIKey, async (req: Request, res: Response) => {
|
||||||
try {
|
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 = {
|
const response = {
|
||||||
statusCode: 200,
|
statusCode: 200,
|
||||||
|
|||||||
Reference in New Issue
Block a user