hotFix(closeAll): fix debug
gitea/salix/pipeline/pr-master This commit looks good Details

This commit is contained in:
Alex Moreno 2024-03-20 12:15:41 +01:00
parent fcb3a50640
commit 7895a51e33
1 changed files with 5 additions and 1 deletions

View File

@ -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(`