refs #4550 renamed param to collectionFk
gitea/printnatura/pipeline/head This commit looks good Details

This commit is contained in:
Guillermo Bonet 2022-11-21 08:26:22 +01:00
parent e8d2b3bd5d
commit 1317a998fe
1 changed files with 2 additions and 2 deletions

View File

@ -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) {