mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
refactor(core): Fix type errors in workflow, core, nodes-langchain, and nodes-base (no-changelog) (#9450)
This commit is contained in:
committed by
GitHub
parent
d9616fc36f
commit
2bdc459bb2
@@ -296,12 +296,7 @@ export async function loadResource(this: ILoadOptionsFunctions, resource: string
|
||||
/**
|
||||
* Populate the `Line` property in a request body.
|
||||
*/
|
||||
export function processLines(
|
||||
this: IExecuteFunctions,
|
||||
body: IDataObject,
|
||||
lines: IDataObject[],
|
||||
resource: string,
|
||||
) {
|
||||
export function processLines(this: IExecuteFunctions, lines: IDataObject[], resource: string) {
|
||||
lines.forEach((line) => {
|
||||
if (resource === 'bill') {
|
||||
if (line.DetailType === 'AccountBasedExpenseLineDetail') {
|
||||
|
||||
@@ -263,7 +263,7 @@ export class QuickBooks implements INodeType {
|
||||
},
|
||||
} as IDataObject;
|
||||
|
||||
body.Line = processLines.call(this, body, lines, resource);
|
||||
body.Line = processLines.call(this, lines, resource);
|
||||
|
||||
const additionalFields = this.getNodeParameter('additionalFields', i);
|
||||
|
||||
@@ -528,7 +528,7 @@ export class QuickBooks implements INodeType {
|
||||
},
|
||||
} as IDataObject;
|
||||
|
||||
body.Line = processLines.call(this, body, lines, resource);
|
||||
body.Line = processLines.call(this, lines, resource);
|
||||
const additionalFields = this.getNodeParameter('additionalFields', i);
|
||||
|
||||
body = populateFields.call(this, body, additionalFields, resource);
|
||||
@@ -688,7 +688,7 @@ export class QuickBooks implements INodeType {
|
||||
},
|
||||
} as IDataObject;
|
||||
|
||||
body.Line = processLines.call(this, body, lines, resource);
|
||||
body.Line = processLines.call(this, lines, resource);
|
||||
|
||||
const additionalFields = this.getNodeParameter('additionalFields', i);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user