From 4dea046c97dd0be1c5fb99555129b3e4be8a9b9d Mon Sep 17 00:00:00 2001 From: alexm Date: Tue, 15 Mar 2022 10:07:39 +0100 Subject: [PATCH] feat(ticket_log): add routeFk log --- loopback/locale/en.json | 3 ++- modules/ticket/back/methods/ticket/componentUpdate.js | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/loopback/locale/en.json b/loopback/locale/en.json index 599febc48..447288077 100644 --- a/loopback/locale/en.json +++ b/loopback/locale/en.json @@ -121,5 +121,6 @@ "Deny buy request": "Purchase request for ticket id [{{ticketId}}]({{{url}}}) has been rejected. Reason: {{observation}}", "The type of business must be filled in basic data": "The type of business must be filled in basic data", "The worker has hours recorded that day": "The worker has hours recorded that day", - "isWithoutNegatives": "isWithoutNegatives" + "isWithoutNegatives": "isWithoutNegatives", + "routeFk": "routeFk" } \ No newline at end of file diff --git a/modules/ticket/back/methods/ticket/componentUpdate.js b/modules/ticket/back/methods/ticket/componentUpdate.js index 2294e6d25..f5c8d63d2 100644 --- a/modules/ticket/back/methods/ticket/componentUpdate.js +++ b/modules/ticket/back/methods/ticket/componentUpdate.js @@ -158,7 +158,8 @@ module.exports = Self => { 'companyFk', 'shipped', 'landed', - 'isDeleted' + 'isDeleted', + 'routeFk' ], include: [ { @@ -169,6 +170,7 @@ module.exports = Self => { }] }, myOptions); + args.routeFk = null; const updatedTicket = Object.assign({}, args); delete updatedTicket.ctx; delete updatedTicket.option;