feat: send run

This commit is contained in:
karishmas6
2024-10-12 16:33:04 +05:30
parent 41947b8542
commit 66add9c0c1

View File

@@ -358,12 +358,12 @@ 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.body.userId);
const response = {
statusCode: 200,
messageCode: "success",
run: '',
run: result,
};
res.status(200).json(response);