This commit is contained in:
parent
f54c8ba9c7
commit
da7c3c38c3
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue