refs #4550 renamed param to collectionFk
gitea/printnatura/pipeline/head This commit looks good
Details
gitea/printnatura/pipeline/head This commit looks good
Details
This commit is contained in:
parent
e8d2b3bd5d
commit
1317a998fe
|
@ -105,7 +105,7 @@ class PrintServer {
|
|||
args[row.name] = row.value;
|
||||
try {
|
||||
let methodPath = this.method.replace(/{\w+}/g, function(match) {
|
||||
const params = {id: args.param};
|
||||
const params = {id: args.collectionFk};
|
||||
const key = match.substr(1, match.length - 2);
|
||||
const value = params[key];
|
||||
return value !== undefined ? value : match;
|
||||
|
@ -150,7 +150,7 @@ class PrintServer {
|
|||
await conn.query(updateQuery, ['printed', null, jobId]);
|
||||
|
||||
if (conf.debug)
|
||||
console.debug(`(${colors.yellow(jobId)}) Document has been printed`, `[${args.param}, ${printJob.report}, ${printer}]`.green);
|
||||
console.debug(`(${colors.yellow(jobId)}) Document has been printed`, `[${args.collectionFk}, ${printJob.report}, ${printer}]`.green);
|
||||
|
||||
await fs.unlink(tmpFilePath);
|
||||
} catch (err) {
|
||||
|
|
Loading…
Reference in New Issue