n8n-nodes-idb2b 3.1.2 → 3.1.3

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.
@@ -117,9 +117,11 @@ function buildContactRequestBody(data, includesPhone = true) {
117
117
  if (data.name !== undefined) {
118
118
  body.name = typeof data.name === "string" ? data.name.trim() : data.name;
119
119
  }
120
- if (data.email !== undefined) {
120
+ if (data.email !== undefined && data.email !== "") {
121
121
  body.email =
122
122
  typeof data.email === "string" ? data.email.trim() : data.email;
123
+ if (body.email === "")
124
+ delete body.email;
123
125
  }
124
126
  // Include phone if provided
125
127
  if (includesPhone &&
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-idb2b",
3
- "version": "3.1.2",
3
+ "version": "3.1.3",
4
4
  "description": "n8n community node for IDB2B - WhatsApp AI Agents",
5
5
  "main": "index.js",
6
6
  "scripts": {