hotFix(closeAll): fix debug #2179
|
@ -58,7 +58,11 @@ module.exports = Self => {
|
|||
GROUP BY t.id
|
||||
`, [toDate, toDate]);
|
||||
const ticketIds = tickets.map(ticket => ticket.id);
|
||||
await Self.rawSql(`CALL util.debugAdd('nightInvoicing', ?)`, [ticketIds.join(',')]);
|
||||
await Self.rawSql(`
|
||||
INSERT INTO util.debug (variable, value)
|
||||
VALUES ('nightInvoicing', ?)
|
||||
`, [ticketIds.join(',')]);
|
||||
|
||||
await closure(ctx, Self, tickets);
|
||||
|
||||
await Self.rawSql(`
|
||||
|
|
Loading…
Reference in New Issue