Skip to content
Permalink
Browse files

fix(api): v1 crash if ticket _id was incorrect

  • Loading branch information...
polonel committed Apr 12, 2019
1 parent fd20ff2 commit eea4d20b982ff3b47f96457cbae51c6a63ddc04e
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/controllers/api/v1/tickets.js
@@ -716,6 +716,7 @@ apiTickets.update = function (req, res) {
var ticketModel = require('../../../models/ticket')
ticketModel.getTicketById(oId, function (err, ticket) {
if (err) return res.status(400).json({ success: false, error: err.message })
if (!ticket) return res.status(400).json({ success: false, error: 'Unable to locate ticket. Aborting...' })
async.parallel(
[
function (cb) {

0 comments on commit eea4d20

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