@zauru-sdk/graphql 1.0.90 → 1.0.91

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.
@@ -240,11 +240,11 @@ const getPurchaseOrdersBetweenDatesStringQuery = (config) => {
240
240
  : "created_at: { _gte: $startDate, _lte: $endDate }");
241
241
  }
242
242
  if (config.payeeCategoryIds && config.payeeCategoryIds.length > 0) {
243
- conditions.push(`payee: { payee_category: { id: { _in: ${config.payeeCategoryIds} } } }`);
243
+ conditions.push(`payee: { payee_category: { id: { _in: [${config.payeeCategoryIds.join(",")}] } } }`);
244
244
  }
245
245
  if (config.excludePayeeCategoryIds &&
246
246
  config.excludePayeeCategoryIds.length > 0) {
247
- conditions.push(`payee: { payee_category: { id: { _nin: ${config.excludePayeeCategoryIds} } } }`);
247
+ conditions.push(`payee: { payee_category: { id: { _nin: [${config.excludePayeeCategoryIds.join(",")}] } } }`);
248
248
  }
249
249
  const whereClause = conditions.length
250
250
  ? `where: { ${conditions.join(", ")} }`
@@ -240,11 +240,11 @@ const getPurchaseOrdersBetweenDatesStringQuery = (config) => {
240
240
  : "created_at: { _gte: $startDate, _lte: $endDate }");
241
241
  }
242
242
  if (config.payeeCategoryIds && config.payeeCategoryIds.length > 0) {
243
- conditions.push(`payee: { payee_category: { id: { _in: ${config.payeeCategoryIds} } } }`);
243
+ conditions.push(`payee: { payee_category: { id: { _in: [${config.payeeCategoryIds.join(",")}] } } }`);
244
244
  }
245
245
  if (config.excludePayeeCategoryIds &&
246
246
  config.excludePayeeCategoryIds.length > 0) {
247
- conditions.push(`payee: { payee_category: { id: { _nin: ${config.excludePayeeCategoryIds} } } }`);
247
+ conditions.push(`payee: { payee_category: { id: { _nin: [${config.excludePayeeCategoryIds.join(",")}] } } }`);
248
248
  }
249
249
  const whereClause = conditions.length
250
250
  ? `where: { ${conditions.join(", ")} }`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zauru-sdk/graphql",
3
- "version": "1.0.90",
3
+ "version": "1.0.91",
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": "478ab8b28cd8758f4048969c94f6b8962a1751c7"
25
+ "gitHead": "56184e01325b96987a6e22fccc5887586970b6c4"
26
26
  }