@warleon/n8n-nodes-payload-cms 1.4.4 → 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 =
|
|
459
|
+
params.where = whereClause;
|
|
457
460
|
}
|
|
458
461
|
if (additionalOptions.select)
|
|
459
462
|
params.select = additionalOptions.select;
|
|
@@ -538,7 +541,7 @@ class PayloadCms {
|
|
|
538
541
|
contentType: mimeType,
|
|
539
542
|
});
|
|
540
543
|
if (data) {
|
|
541
|
-
typeof data === "string" ? JSON.parse(data) : data;
|
|
544
|
+
data = typeof data === "string" ? JSON.parse(data) : data;
|
|
542
545
|
}
|
|
543
546
|
else {
|
|
544
547
|
data = {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@warleon/n8n-nodes-payload-cms",
|
|
3
|
-
"version": "1.4.
|
|
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",
|