@zauru-sdk/graphql 1.0.114 → 1.0.115

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -249,7 +249,7 @@ const getPurchaseOrdersBetweenDatesStringQuery = (startDate, endDate, config) =>
249
249
  config.excludePayeeCategoryIds.length > 0) {
250
250
  conditions.push(`payee: { payee_category: { id: { _nin: [${config.excludePayeeCategoryIds.join(",")}] } } }`);
251
251
  }
252
- if (config.discountComparisonOperator && config.discount) {
252
+ if (!!config.discountComparisonOperator && !!config.discount) {
253
253
  conditions.push(`discount: { ${config.discountComparisonOperator}: ${config.discount} }`);
254
254
  }
255
255
  const whereClause = conditions.length
@@ -249,7 +249,7 @@ const getPurchaseOrdersBetweenDatesStringQuery = (startDate, endDate, config) =>
249
249
  config.excludePayeeCategoryIds.length > 0) {
250
250
  conditions.push(`payee: { payee_category: { id: { _nin: [${config.excludePayeeCategoryIds.join(",")}] } } }`);
251
251
  }
252
- if (config.discountComparisonOperator && config.discount) {
252
+ if (!!config.discountComparisonOperator && !!config.discount) {
253
253
  conditions.push(`discount: { ${config.discountComparisonOperator}: ${config.discount} }`);
254
254
  }
255
255
  const whereClause = conditions.length
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zauru-sdk/graphql",
3
- "version": "1.0.114",
3
+ "version": "1.0.115",
4
4
  "description": "Queries de uso común para las aplicación de Zauru.",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",
@@ -22,5 +22,5 @@
22
22
  "devDependencies": {
23
23
  "typescript": "^5.1.6"
24
24
  },
25
- "gitHead": "f24dbaac6f5cc9543bdfcd33f20f704ead3965c3"
25
+ "gitHead": "9a49125d2c7974621d59f96389b9e08e3fa68dc9"
26
26
  }