n8n-nodes-msteams-botframework 1.2.9 → 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.
|
@@ -185,7 +185,16 @@ class MsTeamsBotFrameworkTrigger {
|
|
|
185
185
|
};
|
|
186
186
|
}
|
|
187
187
|
async webhook() {
|
|
188
|
-
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
|
+
}
|
|
189
198
|
const req = this.getRequestObject();
|
|
190
199
|
const events = this.getNodeParameter('events', []);
|
|
191
200
|
const options = this.getNodeParameter('options', {});
|
|
@@ -311,7 +320,7 @@ class MsTeamsBotFrameworkTrigger {
|
|
|
311
320
|
};
|
|
312
321
|
}
|
|
313
322
|
catch (error) {
|
|
314
|
-
throw new n8n_workflow_1.NodeOperationError(
|
|
323
|
+
throw new n8n_workflow_1.NodeOperationError(node, `Failed to process Teams webhook: ${error.message}`, {
|
|
315
324
|
description: error.message,
|
|
316
325
|
});
|
|
317
326
|
}
|