Update ticketsController.js
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user