4481- Print service refactor #1064
|
@ -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]);
|
||||||
|
|
Loading…
Reference in New Issue