Change the place where output format is made (#2506)

The router file now correctly returns a `INodeExecutionData[][]`
instead of a simple `INodeExecutionData[]` forcing the main node
file to correct this.
This commit is contained in:
Omar Ajoue
2022-01-21 10:32:16 +01:00
committed by GitHub
parent a41afc8013
commit 2e57d86fd6
2 changed files with 3 additions and 6 deletions

View File

@@ -26,9 +26,6 @@ export class MattermostV1 implements INodeType {
methods = { loadOptions };
async execute(this: IExecuteFunctions) {
// Router returns INodeExecutionData[]
// We need to output INodeExecutionData[][]
// So we wrap in []
return [await router.call(this)];
return await router.call(this);
}
}