n8n-nodes-idb2b 3.2.3 → 3.2.4

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.
@@ -90,6 +90,14 @@ function processResponse(response, operation, requestBody) {
90
90
  requestBody) {
91
91
  processed = Object.assign(Object.assign({}, response), { data: Object.assign(Object.assign({}, requestBody), { created: true, status: "success", _note: "Server did not return the created entity. Fields like id and timestamps are unavailable." }) });
92
92
  }
93
+ // Merge socials from request body into create/update response data
94
+ // The API does not return socials in the response, so we add them back
95
+ if ((operation === "create" || operation === "update") &&
96
+ response.message === "success" &&
97
+ response.data &&
98
+ (requestBody === null || requestBody === void 0 ? void 0 : requestBody.socials)) {
99
+ processed = Object.assign(Object.assign({}, processed), { data: Object.assign(Object.assign({}, processed.data), { socials: requestBody.socials }) });
100
+ }
93
101
  // Standardize delete operation response
94
102
  if (operation === "delete") {
95
103
  processed = { deleted: true };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-idb2b",
3
- "version": "3.2.3",
3
+ "version": "3.2.4",
4
4
  "description": "n8n community node for IDB2B - WhatsApp AI Agents",
5
5
  "main": "index.js",
6
6
  "scripts": {