Skip to content

Commit

Permalink
fix(apiv1): invalid response if group was not sent as obj polonel#175
Browse files Browse the repository at this point in the history
  • Loading branch information
polonel committed Mar 29, 2019
1 parent d4de222 commit ee223ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/api/v1/tickets.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit ee223ff

Please sign in to comment.