diff --git a/services/production/common/methods/ticket/change-time.js b/services/production/common/methods/ticket/change-time.js index d492c2800..d763d029d 100644 --- a/services/production/common/methods/ticket/change-time.js +++ b/services/production/common/methods/ticket/change-time.js @@ -21,10 +21,10 @@ module.exports = function(Ticket) { Ticket.changeTime = function(ctx, time, cb) { var tickets = ctx.req.body.tickets; var FakeProduction = Ticket.app.models.FakeProduction; - var hour = `${time}`; + var hour = `${time}:00`; var query = `update Ticket set date = CONCAT(DATE(date), ' ', ?) where id in (?)`; - var params = [time, tickets]; + var params = [hour, tickets]; FakeProduction.updateAll({ticketFk: {inq: tickets}}, {hour: hour}, function(err, res){ if(err)