refs #4550 Bugs fixed
gitea/printnatura/pipeline/head This commit looks good Details

This commit is contained in:
Guillermo Bonet 2022-12-19 10:23:33 +01:00
parent f54c8ba9c7
commit da7c3c38c3
1 changed files with 2 additions and 2 deletions

View File

@ -88,7 +88,7 @@ class PrintServer {
await conn.beginTransaction();
[[printJob]] = await conn.query(selectQuery);
if (!printJob) {
conn.rollback();
await conn.rollback();
return;
}
@ -97,7 +97,7 @@ class PrintServer {
await conn.query(updateQuery, ['printing', null, jobId]);
await conn.commit();
} catch (err) {
conn.rollback();
await conn.rollback();
throw err;
}