fix workerFk
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Alexandre Riera 2022-11-15 13:08:06 +01:00
parent 01607c71b6
commit 97a6aff499
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ module.exports = Self => {
if (!ticket.id || !ticket.ticketFuture) continue; if (!ticket.id || !ticket.ticketFuture) continue;
await models.Sale.updateAll({ ticketFk: ticket.id }, { ticketFk: ticket.ticketFuture }, myOptions); await models.Sale.updateAll({ ticketFk: ticket.id }, { ticketFk: ticket.ticketFuture }, myOptions);
await models.Ticket.setDeleted(ctx, ticket.id, myOptions); await models.Ticket.setDeleted(ctx, ticket.id, myOptions);
await models.Chat.sendCheckingPresence(ctx, 1, message); await models.Chat.sendCheckingPresence(ctx, ticket.workerFk, message);
}; };
if (tx) { if (tx) {
await tx.commit(); await tx.commit();