n8n-nodes-linq 3.1.1 → 3.1.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.
|
@@ -618,13 +618,15 @@ class Linq {
|
|
|
618
618
|
throw new n8n_workflow_1.ApplicationError('phone_number is required when finding chats');
|
|
619
619
|
}
|
|
620
620
|
const qs = {};
|
|
621
|
+
// Add 'from' parameter which is required for chat operations
|
|
622
|
+
qs.from = formatPhoneNumber(fromPhoneNumber);
|
|
621
623
|
if (phoneNumbers) {
|
|
622
624
|
const phoneNumbersArray = phoneNumbers.split(',').map(p => formatPhoneNumber(p.trim()));
|
|
623
625
|
qs['phone_numbers[]'] = phoneNumbersArray;
|
|
624
626
|
}
|
|
625
627
|
responseData = await this.helpers.request({
|
|
626
628
|
method: 'GET',
|
|
627
|
-
url: 'https://api.linqapp.com/api/partner/v3/chats
|
|
629
|
+
url: 'https://api.linqapp.com/api/partner/v3/chats',
|
|
628
630
|
qs,
|
|
629
631
|
headers: {
|
|
630
632
|
'Authorization': `Bearer ${credentials.integrationToken}`,
|