fix: tickets not ordening by update date

This commit is contained in:
canove
2020-07-29 09:37:03 -03:00
parent 2ce5b320d3
commit c76ac84a76

View File

@@ -42,6 +42,7 @@ exports.index = async (req, res) => {
], ],
], ],
}, },
order: [["updatedAt", "DESC"]],
}); });
return res.json(tickets); return res.json(tickets);