n8n-nodes-hamkar 3.3.11 → 3.3.13
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.
|
@@ -48,12 +48,11 @@ class HamkarSendSms {
|
|
|
48
48
|
const credentials = await this.getCredentials('hamkarApi');
|
|
49
49
|
const projectId = credentials.projectId;
|
|
50
50
|
for (let i = 0; i < items.length; i++) {
|
|
51
|
-
const phone = this.getNodeParameter('phone', i);
|
|
52
|
-
const text = this.getNodeParameter('text', i);
|
|
51
|
+
const phone = this.getNodeParameter('phone', i) || items[i].json.phone;
|
|
52
|
+
const text = this.getNodeParameter('text', i) || items[i].json.text;
|
|
53
53
|
const Data = {
|
|
54
54
|
text: text,
|
|
55
55
|
phones: [phone],
|
|
56
|
-
total_count: 1,
|
|
57
56
|
project_id: projectId,
|
|
58
57
|
};
|
|
59
58
|
const response = await this.helpers.httpRequestWithAuthentication.call(this, 'hamkarApi', {
|