@warleon/n8n-nodes-payload-cms 1.4.3 → 1.4.5
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.
|
@@ -216,12 +216,9 @@ class PayloadCms {
|
|
|
216
216
|
{
|
|
217
217
|
displayName: "Data",
|
|
218
218
|
name: "data",
|
|
219
|
-
type: "
|
|
219
|
+
type: "json",
|
|
220
220
|
required: true,
|
|
221
|
-
default: "",
|
|
222
|
-
typeOptions: {
|
|
223
|
-
loadOptionsMethod: "getPayloadFields",
|
|
224
|
-
},
|
|
221
|
+
default: "{}",
|
|
225
222
|
displayOptions: {
|
|
226
223
|
show: {
|
|
227
224
|
resource: ["collection"],
|
|
@@ -541,7 +538,7 @@ class PayloadCms {
|
|
|
541
538
|
contentType: mimeType,
|
|
542
539
|
});
|
|
543
540
|
if (data) {
|
|
544
|
-
typeof data === "string" ? JSON.parse(data) : data;
|
|
541
|
+
data = typeof data === "string" ? JSON.parse(data) : data;
|
|
545
542
|
}
|
|
546
543
|
else {
|
|
547
544
|
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.5",
|
|
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",
|