mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
⚡ Add execution url on Error-Workflow trigger
This commit is contained in:
@@ -33,9 +33,19 @@ export class ErrorTrigger implements INodeType {
|
||||
if (mode === 'manual' && items.length === 1 && Object.keys(items[0].json).length === 0 && items[0].binary === undefined) {
|
||||
// If we are in manual mode and no input data got provided we return
|
||||
// example data to allow to develope and test errorWorkflows easily
|
||||
|
||||
const restApiUrl = this.getRestApiUrl();
|
||||
|
||||
const urlParts = restApiUrl.split('/');
|
||||
urlParts.pop();
|
||||
urlParts.push('execution');
|
||||
|
||||
const id = 231;
|
||||
|
||||
items[0].json = {
|
||||
execution: {
|
||||
id: '231',
|
||||
id,
|
||||
url: `${urlParts.join('/')}/${id}`,
|
||||
retryOf: '34',
|
||||
error: {
|
||||
message: 'Example Error Message',
|
||||
|
||||
Reference in New Issue
Block a user