refs #6755 fix ticket
This commit is contained in:
parent
893320b114
commit
cac388f986
|
@ -30,18 +30,8 @@ module.exports = Self => {
|
|||
Object.assign(myOptions, options);
|
||||
|
||||
const ticket = await models.Ticket.findById(id, {
|
||||
include: [{
|
||||
relation: 'client',
|
||||
scope: {
|
||||
fields: ['id', 'salesPersonFk']
|
||||
}
|
||||
}]
|
||||
fields: ['originFk', 'creationDate', 'newInstance']
|
||||
}, myOptions);
|
||||
const lastUpdatedTicket = await models.ticketLog.findById(id, {
|
||||
include: [{
|
||||
|
||||
}]
|
||||
});
|
||||
|
||||
const now = Date.vnNew();
|
||||
const maxDate = new Date(ticket.updated);
|
||||
|
|
Loading…
Reference in New Issue