fix: PairedItems various fixes (no-changelog) (#9357)

This commit is contained in:
Michael Kret
2024-05-16 12:35:36 +03:00
committed by GitHub
parent c9855e3dce
commit 5a3122f279
5 changed files with 37 additions and 21 deletions

View File

@@ -692,8 +692,8 @@ export class FileMaker implements INodeType {
const action = this.getNodeParameter('action', 0) as string;
try {
for (let i = 0; i < items.length; i++) {
for (let i = 0; i < items.length; i++) {
try {
// Reset all values
requestOptions = {
uri: '',
@@ -807,17 +807,24 @@ export class FileMaker implements INodeType {
{ itemIndex: i },
);
}
returnData.push({ json: response });
}
} catch (error) {
if (error.node) {
throw error;
}
returnData.push({ json: response, pairedItem: { item: i } });
} catch (error) {
if (this.continueOnFail()) {
returnData.push({
json: { error: error.message },
pairedItem: { item: i },
});
} else {
if (error.node) {
throw error;
}
throw new NodeOperationError(
this.getNode(),
`The action "${error.message}" is not implemented yet!`,
);
throw new NodeOperationError(
this.getNode(),
`The action "${error.message}" is not implemented yet!`,
);
}
}
}
await logout.call(this, token as string);