@connectorx/n8n-nodes-cortex 0.1.21 → 0.1.22
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.
|
@@ -230,7 +230,10 @@ class Cortex {
|
|
|
230
230
|
{
|
|
231
231
|
displayName: 'Sender ID',
|
|
232
232
|
name: 'sender_id',
|
|
233
|
-
type: '
|
|
233
|
+
type: 'options',
|
|
234
|
+
typeOptions: {
|
|
235
|
+
loadOptionsMethod: 'getUsers',
|
|
236
|
+
},
|
|
234
237
|
displayOptions: {
|
|
235
238
|
show: {
|
|
236
239
|
resource: ['message'],
|
|
@@ -479,9 +482,17 @@ class Cortex {
|
|
|
479
482
|
if (operation === 'send') {
|
|
480
483
|
options.uri = `${baseUrl}/messages/send`;
|
|
481
484
|
const msgType = this.getNodeParameter('msg_type', i);
|
|
482
|
-
const senderId = this.getNodeParameter('sender_id', i);
|
|
483
|
-
|
|
484
|
-
|
|
485
|
+
const senderId = this.getNodeParameter('sender_id', i, '');
|
|
486
|
+
let replyTo = '';
|
|
487
|
+
try {
|
|
488
|
+
replyTo = this.getNodeParameter('reply_to_message_id', i, '');
|
|
489
|
+
}
|
|
490
|
+
catch (_e) { }
|
|
491
|
+
let reactTo = '';
|
|
492
|
+
try {
|
|
493
|
+
reactTo = this.getNodeParameter('react_to_message_id', i, '');
|
|
494
|
+
}
|
|
495
|
+
catch (_e) { }
|
|
485
496
|
let content = '';
|
|
486
497
|
let caption = '';
|
|
487
498
|
if (['text', 'internal_note', 'reaction'].includes(msgType)) {
|