diff --git a/package.json b/package.json index 88cf1c12..50a3cb23 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bfx-report", - "version": "4.8.1", + "version": "4.8.2", "description": "Reporting tool", "main": "worker.js", "license": "Apache-2.0", diff --git a/workers/loc.api/helpers/get-data-from-api.js b/workers/loc.api/helpers/get-data-from-api.js index d7502e79..108a310f 100644 --- a/workers/loc.api/helpers/get-data-from-api.js +++ b/workers/loc.api/helpers/get-data-from-api.js @@ -77,7 +77,7 @@ module.exports = ( } try { - const _args = cloneDeep(args) + const _args = cloneDeep(args) ?? {} /* * API request should not be logged to std error stream diff --git a/workers/loc.api/helpers/prepare-response/helpers/is-not-contained-same-mts.js b/workers/loc.api/helpers/prepare-response/helpers/is-not-contained-same-mts.js index 2dda2bbd..9eb830a5 100644 --- a/workers/loc.api/helpers/prepare-response/helpers/is-not-contained-same-mts.js +++ b/workers/loc.api/helpers/prepare-response/helpers/is-not-contained-same-mts.js @@ -27,7 +27,7 @@ module.exports = (args, opts) => { ) return ( - apiRes.length === 0 || + apiRes.length <= 1 || // Check makes sense to prevent double requests to api methodLimit > limit || apiRes.some((item) => ( item?.[datePropName] !== mts