fix: typo in sequelize method

This commit is contained in:
canove
2020-08-13 18:15:50 -03:00
parent 5b429bda87
commit 7486b2d6ef

View File

@@ -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,