refs #4550 Fixed bug: not ended transaction
This commit is contained in:
parent
4aacee1133
commit
ce1312fdf1
|
@ -86,7 +86,10 @@ class PrintServer {
|
||||||
try {
|
try {
|
||||||
await conn.beginTransaction();
|
await conn.beginTransaction();
|
||||||
[[printJob]] = await conn.query(selectQuery, ['LabelCollection', this.conf.printers]);
|
[[printJob]] = await conn.query(selectQuery, ['LabelCollection', this.conf.printers]);
|
||||||
if (!printJob) return;
|
if (!printJob) {
|
||||||
|
conn.rollback();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
jobId = printJob.id;
|
jobId = printJob.id;
|
||||||
this.method = printJob.method;
|
this.method = printJob.method;
|
||||||
|
|
Loading…
Reference in New Issue