diff --git a/print-server.js b/print-server.js index 72c7726..23a3cdd 100644 --- a/print-server.js +++ b/print-server.js @@ -163,9 +163,9 @@ class PrintServer { if (printJob) { jobId = printJob.id; await conn.query(updateQuery, ['printing', null, jobId]); - await conn.commit(); this.jobLog(jobId, 'debug', 'get: printing'); } + await conn.commit(); } catch (err) { await conn.rollback(); if (jobId)