mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
refactor(core): Introduce overload for record-type node parameter (no-changelog) (#4648)
* 📘 Set up overload * 🔥 Remove inferrable record assertions * 👕 Fix semicolon * 👕 Fix another semicolon
This commit is contained in:
@@ -108,7 +108,7 @@ export class MicrosoftToDo implements INodeType {
|
||||
const body: IDataObject = {
|
||||
applicationName: this.getNodeParameter('applicationName', i) as string,
|
||||
displayName: this.getNodeParameter('displayName', i) as string,
|
||||
...(this.getNodeParameter('additionalFields', i) as IDataObject[]),
|
||||
...(this.getNodeParameter('additionalFields', i)),
|
||||
};
|
||||
|
||||
responseData = await microsoftApiRequest.call(
|
||||
@@ -182,7 +182,7 @@ export class MicrosoftToDo implements INodeType {
|
||||
const linkedResourceId = this.getNodeParameter('linkedResourceId', i) as string;
|
||||
|
||||
const body: IDataObject = {
|
||||
...(this.getNodeParameter('updateFields', i) as IDataObject[]),
|
||||
...this.getNodeParameter('updateFields', i),
|
||||
};
|
||||
|
||||
responseData = await microsoftApiRequest.call(
|
||||
@@ -205,7 +205,7 @@ export class MicrosoftToDo implements INodeType {
|
||||
const taskListId = this.getNodeParameter('taskListId', i) as string;
|
||||
const body: IDataObject = {
|
||||
title: this.getNodeParameter('title', i) as string,
|
||||
...(this.getNodeParameter('additionalFields', i) as IDataObject[]),
|
||||
...this.getNodeParameter('additionalFields', i),
|
||||
};
|
||||
|
||||
if (body.content) {
|
||||
@@ -288,7 +288,7 @@ export class MicrosoftToDo implements INodeType {
|
||||
const taskListId = this.getNodeParameter('taskListId', i) as string;
|
||||
const taskId = this.getNodeParameter('taskId', i) as string;
|
||||
const body: IDataObject = {
|
||||
...(this.getNodeParameter('updateFields', i) as IDataObject[]),
|
||||
...this.getNodeParameter('updateFields', i),
|
||||
};
|
||||
|
||||
if (body.content) {
|
||||
|
||||
Reference in New Issue
Block a user