Skip to content
Permalink
Browse files

fix(apiv1): invalid response if group was not sent as obj #175

  • Loading branch information...
polonel committed Mar 29, 2019
1 parent d4de222 commit ee223ff29e3c391c486e5a3df6bef306eb1e75f1
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/controllers/api/v1/tickets.js
@@ -654,7 +654,7 @@ apiTickets.update = function (req, res) {
},
function (cb) {
if (!_.isUndefined(reqTicket.group)) {
ticket.group = reqTicket.group._id
ticket.group = reqTicket.group._id || reqTicket.group

ticket.populate('group', function () {
return cb()

0 comments on commit ee223ff

Please sign in to comment.
You can’t perform that action at this time.