refactor: borrada variable innecesaria
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Vicent Llopis 2023-02-17 09:49:47 +01:00
parent b5d2d53435
commit 874f459956
1 changed files with 1 additions and 2 deletions

View File

@ -35,8 +35,7 @@ module.exports = Self => {
const tickets = await models.Ticket.find(filter, myOptions);
const ticketsIds = tickets.map(ticket => ticket.id);
const createSingleTicket = true;
const refundedTickets = await models.Ticket.refund(ticketsIds, createSingleTicket, myOptions);
const refundedTickets = await models.Ticket.refund(ticketsIds, true, myOptions);
if (tx) await tx.commit();