From a5c3ba3926d414662d59a4d99d7055d3c269ec0d Mon Sep 17 00:00:00 2001 From: joan Date: Wed, 19 May 2021 10:26:58 +0200 Subject: [PATCH 1/2] 2921 - Changed the ticket url of rocket notifications --- modules/claim/back/methods/claim/regularizeClaim.js | 2 +- modules/ticket/back/methods/ticket/componentUpdate.js | 2 +- modules/ticket/back/methods/ticket/deleteStowaway.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/claim/back/methods/claim/regularizeClaim.js b/modules/claim/back/methods/claim/regularizeClaim.js index 99d9055b2..16ef1adfe 100644 --- a/modules/claim/back/methods/claim/regularizeClaim.js +++ b/modules/claim/back/methods/claim/regularizeClaim.js @@ -62,7 +62,7 @@ module.exports = Self => { itemId: sale.itemFk, ticketId: sale.ticketFk, nickname: nickname, - ticketUrl: `${origin}/#!/ticket/${sale.ticketFk}/summary`, + ticketUrl: `${origin}/#!/ticket/${sale.ticketFk}/sale`, itemUrl: `${origin}/#!/item/${sale.itemFk}/summary` }); await models.Chat.sendCheckingPresence(ctx, salesPerson.id, message); diff --git a/modules/ticket/back/methods/ticket/componentUpdate.js b/modules/ticket/back/methods/ticket/componentUpdate.js index c4d1baed1..44e85c093 100644 --- a/modules/ticket/back/methods/ticket/componentUpdate.js +++ b/modules/ticket/back/methods/ticket/componentUpdate.js @@ -221,7 +221,7 @@ module.exports = Self => { const message = $t('Changed this data from the ticket', { ticketId: args.id, - ticketUrl: `${origin}/#!/ticket/${args.id}/summary`, + ticketUrl: `${origin}/#!/ticket/${args.id}/sale`, changes: changesMade }); await models.Chat.sendCheckingPresence(ctx, salesPersonId, message, myOptions); diff --git a/modules/ticket/back/methods/ticket/deleteStowaway.js b/modules/ticket/back/methods/ticket/deleteStowaway.js index 5f51b08a4..b86cdc464 100644 --- a/modules/ticket/back/methods/ticket/deleteStowaway.js +++ b/modules/ticket/back/methods/ticket/deleteStowaway.js @@ -77,7 +77,7 @@ module.exports = Self => { const origin = ctx.req.headers.origin; const message = $t('This ticket is not an stowaway anymore', { ticketId: stowawayFk, - ticketUrl: `${origin}/#!/ticket/${stowawayFk}/summary` + ticketUrl: `${origin}/#!/ticket/${stowawayFk}/sale` }); await models.Chat.sendCheckingPresence(ctx, salesPerson.id, message); } From b7049122fe27b65087b6bcbe030f185392ab10ef Mon Sep 17 00:00:00 2001 From: joan Date: Thu, 20 May 2021 10:28:37 +0200 Subject: [PATCH 2/2] Url fix --- modules/client/back/models/credit-insurance.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/client/back/models/credit-insurance.js b/modules/client/back/models/credit-insurance.js index 2a02ce41f..a2e8091e1 100644 --- a/modules/client/back/models/credit-insurance.js +++ b/modules/client/back/models/credit-insurance.js @@ -58,7 +58,7 @@ module.exports = function(Self) { const httpRequest = httpCtx.req.http.req; const $t = httpRequest.__; const origin = httpRequest.headers.origin; - const fullPath = `${origin}/#!/client/${client.id}`; + const fullPath = `${origin}/#!/client/${client.id}/credit-insurance/index`; const message = $t('MESSAGE_INSURANCE_CHANGE', { clientId: client.id, clientName: client.name,