refs #4550 getJob: Transaction commit fix
gitea/printnatura/pipeline/head This commit looks good Details

This commit is contained in:
Juan Ferrer 2022-12-26 15:53:54 +01:00
parent 0a32ef9041
commit 6a5b7f4a25
1 changed files with 1 additions and 1 deletions

View File

@ -163,9 +163,9 @@ class PrintServer {
if (printJob) { if (printJob) {
jobId = printJob.id; jobId = printJob.id;
await conn.query(updateQuery, ['printing', null, jobId]); await conn.query(updateQuery, ['printing', null, jobId]);
await conn.commit();
this.jobLog(jobId, 'debug', 'get: printing'); this.jobLog(jobId, 'debug', 'get: printing');
} }
await conn.commit();
} catch (err) { } catch (err) {
await conn.rollback(); await conn.rollback();
if (jobId) if (jobId)