From ef4146358a01b2c0101ef47feb96bf2a597ea278 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Thu, 10 Oct 2024 06:03:44 +0530 Subject: [PATCH] feat: set raw to true --- server/src/api/record.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/api/record.ts b/server/src/api/record.ts index a69b1de3..11a10dc0 100644 --- a/server/src/api/record.ts +++ b/server/src/api/record.ts @@ -30,7 +30,7 @@ const formatRecording = (recordingData: any) => { router.get("/robots", requireAPIKey, async (req: Request, res: Response) => { try { - const robots = await Robot.findAll(); + const robots = await Robot.findAll({ raw: true}); const formattedRecordings = robots.map(formatRecording); const response = {