refs #4550 Fixed bug: not ended transaction
gitea/printnatura/pipeline/head This commit looks good
Details
gitea/printnatura/pipeline/head This commit looks good
Details
This commit is contained in:
commit
5a104e3b62
|
@ -85,11 +85,16 @@ class PrintServer {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await conn.beginTransaction();
|
await conn.beginTransaction();
|
||||||
[[printJob]] = await conn.query(selectQuery, ['LabelCollection', this.conf.printers]);
|
<<<<<<< HEAD
|
||||||
|
[[printJob]] = await conn.query(selectQuery);
|
||||||
if (!printJob) {
|
if (!printJob) {
|
||||||
conn.rollback();
|
conn.rollback();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
=======
|
||||||
|
[[printJob]] = await conn.query(selectQuery);
|
||||||
|
if (!printJob) return;
|
||||||
|
>>>>>>> b9b83b979507038a3f39ef7c1ed47d9c316191fe
|
||||||
|
|
||||||
jobId = printJob.id;
|
jobId = printJob.id;
|
||||||
this.method = printJob.method;
|
this.method = printJob.method;
|
||||||
|
@ -108,9 +113,8 @@ class PrintServer {
|
||||||
args[row.name] = row.value;
|
args[row.name] = row.value;
|
||||||
try {
|
try {
|
||||||
let methodPath = this.method.replace(/{\w+}/g, function(match) {
|
let methodPath = this.method.replace(/{\w+}/g, function(match) {
|
||||||
const params = {id: args.collectionFk};
|
|
||||||
const key = match.substr(1, match.length - 2);
|
const key = match.substr(1, match.length - 2);
|
||||||
const value = params[key];
|
const value = args[key];
|
||||||
return value !== undefined ? value : match;
|
return value !== undefined ? value : match;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue