From 1317a998fe58196bbb432d316c3f69fb45522028 Mon Sep 17 00:00:00 2001 From: guillermo Date: Mon, 21 Nov 2022 08:26:22 +0100 Subject: [PATCH] refs #4550 renamed param to collectionFk --- print-server.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/print-server.js b/print-server.js index 3e2abd8..edf5b55 100644 --- a/print-server.js +++ b/print-server.js @@ -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) {