mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-19 12:19:16 +00:00
fix: tickets not ordening by update date
This commit is contained in:
@@ -42,6 +42,7 @@ exports.index = async (req, res) => {
|
|||||||
],
|
],
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
order: [["updatedAt", "DESC"]],
|
||||||
});
|
});
|
||||||
|
|
||||||
return res.json(tickets);
|
return res.json(tickets);
|
||||||
|
|||||||
Reference in New Issue
Block a user