diff --git a/backend/src/controllers/TicketController.js b/backend/src/controllers/TicketController.js index bbd7f1c..4339940 100644 --- a/backend/src/controllers/TicketController.js +++ b/backend/src/controllers/TicketController.js @@ -87,7 +87,7 @@ exports.index = async (req, res) => { }; } - const { count, rows: tickets } = await Ticket.findAndCoundtAll({ + const { count, rows: tickets } = await Ticket.findAndCountAll({ where: whereCondition, distinct: true, include: includeCondition,