fix workerFk
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
01607c71b6
commit
97a6aff499
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue