#1663 update ticketLog

This commit is contained in:
Bernat 2019-09-10 14:43:00 +02:00
parent 8932aa4e5a
commit ac6d1ed829
1 changed files with 3 additions and 2 deletions

View File

@ -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,