#1663 update ticketLog
This commit is contained in:
parent
8932aa4e5a
commit
ac6d1ed829
|
@ -33,6 +33,7 @@ module.exports = Self => {
|
|||
});
|
||||
|
||||
Self.transferSales = async(ctx, id, ticketId, sales) => {
|
||||
let userId = ctx.req.accessToken.userId;
|
||||
const models = Self.app.models;
|
||||
|
||||
const isEditable = await models.Ticket.isEditable(ctx, id);
|
||||
|
@ -78,7 +79,7 @@ module.exports = Self => {
|
|||
|
||||
let logTicketOrigin = {
|
||||
originFk: id,
|
||||
userFk: 9,
|
||||
userFk: userId,
|
||||
action: 'update',
|
||||
changedModel: 'Ticket',
|
||||
changedModelId: ticketId,
|
||||
|
@ -95,7 +96,7 @@ module.exports = Self => {
|
|||
|
||||
let logTicketDestination = {
|
||||
originFk: ticketId,
|
||||
userFk: 9,
|
||||
userFk: userId,
|
||||
action: 'update',
|
||||
changedModel: 'Ticket',
|
||||
changedModelId: ticketId,
|
||||
|
|
Loading…
Reference in New Issue