From 46ce8645b9025a03303faf1eabd7ab6703084b3a Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Sat, 12 Oct 2024 22:14:33 +0530 Subject: [PATCH] feat: get result --- server/src/api/record.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/server/src/api/record.ts b/server/src/api/record.ts index 4fd4f2bd..aaa34afa 100644 --- a/server/src/api/record.ts +++ b/server/src/api/record.ts @@ -366,13 +366,13 @@ 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.dataValues.id); - console.log(`Result`, result); + const interpretationInfo = await handleRunRecording(req.params.id, req.user.dataValues.id); + console.log(`Result`, interpretationInfo); const response = { statusCode: 200, messageCode: "success", - run: result, + run: interpretationInfo, }; res.status(200).json(response); @@ -386,4 +386,5 @@ router.post("/robots/:id/runs", requireAPIKey, async (req: Request, res: Respons } }); + export default router; \ No newline at end of file