From b389027da57a852e9941e84c2adf892e7eda1355 Mon Sep 17 00:00:00 2001 From: Wes Winder Date: Fri, 18 Sep 2020 05:42:17 -0400 Subject: [PATCH] Fixed issue where query data would not properly copy if variable equates to false (#115) --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 264bc77..165ca94 100644 --- a/src/index.js +++ b/src/index.js @@ -650,7 +650,7 @@ class Service extends AdapterService { const findParams = Object.assign({}, params, { query: Object.assign({}, params.query, this.getIdsQuery(id, idList), selectParam) }); for (const key of Object.keys(dataCopy)) { - if (findParams.query[key]) { + if (key in findParams.query) { findParams.query[key] = dataCopy[key]; } }