n8n-nodes-idb2b 2.0.10 → 3.0.2

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.
@@ -276,13 +276,6 @@ class IDB2B {
276
276
  required: true,
277
277
  },
278
278
  ],
279
- requestDefaults: {
280
- baseURL: '={{$credentials.baseUrl}}',
281
- headers: {
282
- Accept: 'application/json',
283
- 'Content-Type': 'application/json',
284
- },
285
- },
286
279
  properties: [
287
280
  {
288
281
  displayName: 'Resource',
@@ -376,7 +369,7 @@ class IDB2B {
376
369
  });
377
370
  }
378
371
  else if (operation === 'update') {
379
- method = 'PUT';
372
+ method = 'PATCH';
380
373
  const contactId = this.getNodeParameter('contactId', i);
381
374
  endpoint = `/contacts/${sanitizeId(contactId)}`;
382
375
  const name = this.getNodeParameter('name', i, '');
@@ -447,7 +440,7 @@ class IDB2B {
447
440
  });
448
441
  }
449
442
  else if (operation === 'update') {
450
- method = 'PUT';
443
+ method = 'PATCH';
451
444
  const companyId = this.getNodeParameter('companyId', i);
452
445
  endpoint = `/companies/${sanitizeId(companyId)}`;
453
446
  const name = this.getNodeParameter('name', i, '');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-idb2b",
3
- "version": "2.0.10",
3
+ "version": "3.0.2",
4
4
  "description": "n8n community node for IDB2B - WhatsApp AI Agents",
5
5
  "main": "index.js",
6
6
  "scripts": {