feat: refs #7569 refs#7569 sendEmailNotification
gitea/salix/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Sergio De la torre 2025-01-20 16:27:35 +01:00
parent b5e27707a7
commit ef68884fe0
3 changed files with 3 additions and 3 deletions

View File

@ -395,5 +395,5 @@
"Holidays to past days not available": "Las vacaciones a días pasados no están disponibles",
"Incorrect delivery order alert on route": "Alerta de orden de entrega incorrecta en ruta: {{ route }} zona: {{ zone }}",
"Ticket has been delivered out of order": "El ticket {{ticket}} {{{fullUrl}}} no ha sigo entregado en su orden.",
"Price cannot be blank": "Price cannot be blank"
"Price cannot be blank": "El precio no puede estar en blanco"
}

View File

@ -174,7 +174,7 @@ module.exports = Self => {
WHERE t.id = ?)`
, [ticket.routeFk, orderState.id, ticket.id], myOptions);
if (ticketIncorrect && ticketIncorrect.length > 0)
if (ticketIncorrect?.length > 0)
await sendMail(ctx, ticket.routeFk, ticket.id, ticket.zone().name);
}

View File

@ -60,7 +60,7 @@ describe('Ticket saveSign()', () => {
expect(ticketTrackingAfter.name).toBe('Entregado en parte');
});
fit('should send an email to notify that the delivery order is not correct', async() => {
it('should send an email to notify that the delivery order is not correct', async() => {
const tx = await models.Ticket.beginTransaction({});
const ticketFk = 8;
const priority = 5;