@warleon/n8n-nodes-payload-cms 1.4.5 → 1.4.6

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.
@@ -416,6 +416,9 @@ class PayloadCms {
416
416
  config.validateStatus = (status) => {
417
417
  return status < 500;
418
418
  };
419
+ config.paramsSerializer = {
420
+ serialize: (params) => (0, qs_esm_1.stringify)(params, { arrayFormat: "brackets" }),
421
+ };
419
422
  return (0, axios_1.default)(config);
420
423
  }
421
424
  async execute() {
@@ -453,7 +456,7 @@ class PayloadCms {
453
456
  const whereClause = typeof additionalOptions.where === "string"
454
457
  ? JSON.parse(additionalOptions.where)
455
458
  : additionalOptions.where;
456
- params.where = (0, qs_esm_1.stringify)(whereClause);
459
+ params.where = whereClause;
457
460
  }
458
461
  if (additionalOptions.select)
459
462
  params.select = additionalOptions.select;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@warleon/n8n-nodes-payload-cms",
3
- "version": "1.4.5",
3
+ "version": "1.4.6",
4
4
  "description": "Dynamic n8n node for Payload CMS that auto-discovers collections and operations forked and extended from https://github.com/leadership-institute/n8n-payload-dynamic",
5
5
  "main": "dist/index.js",
6
6
  "author": "warleon",