Update ticketsController.js
This commit is contained in:
@@ -148,6 +148,7 @@ module.exports.get_one_ticket = [
|
|||||||
module.exports.get_all_tickets_for_admin = [
|
module.exports.get_all_tickets_for_admin = [
|
||||||
(req, res) => {
|
(req, res) => {
|
||||||
TicketConversation.find()
|
TicketConversation.find()
|
||||||
|
.sort({created_at: -1})
|
||||||
.populate('user_id', userIdPopulation)
|
.populate('user_id', userIdPopulation)
|
||||||
.exec((err, data) => {
|
.exec((err, data) => {
|
||||||
if (err) return res500(res, err)
|
if (err) return res500(res, err)
|
||||||
|
|||||||
Reference in New Issue
Block a user