4481- Print service refactor #1064

Merged
joan merged 27 commits from 4481-print_library2 into dev 2022-10-05 09:56:51 +00:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit ccec38ef97 - Show all commits

View File

@ -106,7 +106,7 @@ module.exports = Self => {
// Update queue status // Update queue status
const date = new Date(); const date = new Date();
await Self.rawSql(` await Self.rawSql(`
UPDATE invoiceOut_queue UPDATE invoiceOutQueue
SET status = "printed", SET status = "printed",
printed = ? printed = ?
WHERE invoiceFk = ?`, WHERE invoiceFk = ?`,
@ -117,7 +117,7 @@ module.exports = Self => {
await tx.rollback(); await tx.rollback();
await Self.rawSql(` await Self.rawSql(`
UPDATE invoiceOut_queue UPDATE invoiceOutQueue
SET status = ? SET status = ?
WHERE invoiceFk = ?`, WHERE invoiceFk = ?`,
[error.message, invoiceId]); [error.message, invoiceId]);