diff --git a/nest-backend/src/routes/bugs.ts b/nest-backend/src/routes/bugs.ts index b6f309e..174aea8 100644 --- a/nest-backend/src/routes/bugs.ts +++ b/nest-backend/src/routes/bugs.ts @@ -100,7 +100,7 @@ router.get('/', async (req: Request, res: Response): Promise => { prisma.bugReport.count({ where }), ]); - res.json({ bugs: bugs.map(formatBug), total, page, pages: Math.ceil(total / limit) }); + res.json({ data: bugs.map(formatBug), total, page, pages: Math.ceil(total / limit) }); }); // GET /api/bugs/:id