From 7486b2d6ef26b11986f0a76a42c7af84ca562e2d Mon Sep 17 00:00:00 2001 From: canove Date: Thu, 13 Aug 2020 18:15:50 -0300 Subject: [PATCH] fix: typo in sequelize method --- backend/src/controllers/TicketController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,