feat: set raw to true

This commit is contained in:
karishmas6
2024-10-10 06:03:44 +05:30
parent 974c6971bf
commit ef4146358a

View File

@@ -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 = {