feat: get result

This commit is contained in:
karishmas6
2024-10-12 22:14:33 +05:30
parent 940d04e5b2
commit 46ce8645b9

View File

@@ -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;