Update ticketsController.js

This commit is contained in:
Swift
2023-08-27 17:50:02 +03:30
parent 0707b3d79d
commit 46702b74f2
+1
View File
@@ -148,6 +148,7 @@ module.exports.get_one_ticket = [
module.exports.get_all_tickets_for_admin = [
(req, res) => {
TicketConversation.find()
.sort({created_at: -1})
.populate('user_id', userIdPopulation)
.exec((err, data) => {
if (err) return res500(res, err)