diff --git a/package.json b/package.json index c09b7fc..273911f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pdf-bot", - "version": "0.5.2", + "version": "0.5.3", "author": "Esben Petersen ", "homepage": "https://github.com/esbenp/pdf-bot", "license": "MIT", diff --git a/src/db/pgsql.js b/src/db/pgsql.js index feee93e..5a7fe51 100644 --- a/src/db/pgsql.js +++ b/src/db/pgsql.js @@ -167,7 +167,7 @@ function purge (db, failed = false, pristine = false, maxTries = 5) { params.push(maxTries) } - return db.query(query) + return db.query(query, params) } function setIsBusy (db, isBusy) {