n8n-nodes-msteams-botframework 1.2.8 → 1.2.10
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.
|
@@ -41,8 +41,7 @@ class MsTeamsBotFrameworkTrigger {
|
|
|
41
41
|
httpMethod: 'POST',
|
|
42
42
|
responseMode: '={{$parameter["respondWhen"]}}',
|
|
43
43
|
responseData: '={{$parameter["responseData"]}}',
|
|
44
|
-
path: '',
|
|
45
|
-
isFullPath: true,
|
|
44
|
+
path: 'webhook',
|
|
46
45
|
},
|
|
47
46
|
],
|
|
48
47
|
properties: [
|
|
@@ -186,7 +185,16 @@ class MsTeamsBotFrameworkTrigger {
|
|
|
186
185
|
};
|
|
187
186
|
}
|
|
188
187
|
async webhook() {
|
|
189
|
-
const
|
|
188
|
+
const node = this.getNode();
|
|
189
|
+
let credentials;
|
|
190
|
+
try {
|
|
191
|
+
credentials = await this.getCredentials('msTeamsBotFrameworkApi');
|
|
192
|
+
}
|
|
193
|
+
catch (error) {
|
|
194
|
+
throw new n8n_workflow_1.NodeOperationError(node, 'Failed to get credentials', {
|
|
195
|
+
description: error.message,
|
|
196
|
+
});
|
|
197
|
+
}
|
|
190
198
|
const req = this.getRequestObject();
|
|
191
199
|
const events = this.getNodeParameter('events', []);
|
|
192
200
|
const options = this.getNodeParameter('options', {});
|
|
@@ -312,7 +320,7 @@ class MsTeamsBotFrameworkTrigger {
|
|
|
312
320
|
};
|
|
313
321
|
}
|
|
314
322
|
catch (error) {
|
|
315
|
-
throw new n8n_workflow_1.NodeOperationError(
|
|
323
|
+
throw new n8n_workflow_1.NodeOperationError(node, `Failed to process Teams webhook: ${error.message}`, {
|
|
316
324
|
description: error.message,
|
|
317
325
|
});
|
|
318
326
|
}
|