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