refactor(core): Remove linting exceptions in nodes-base (no-changelog) (#4944)

This commit is contained in:
Michael Kret
2023-01-13 19:11:56 +02:00
committed by GitHub
parent d7732ea150
commit 6608e69457
254 changed files with 2687 additions and 2675 deletions

View File

@@ -138,7 +138,7 @@ export class Reddit implements INodeType {
const postTypePrefix = 't3_';
const qs: IDataObject = {
id: postTypePrefix + this.getNodeParameter('postId', i),
id: postTypePrefix + (this.getNodeParameter('postId', i) as string),
};
await redditApiRequest.call(this, 'POST', 'api/del', qs);
@@ -228,7 +228,7 @@ export class Reddit implements INodeType {
const qs: IDataObject = {
text: this.getNodeParameter('commentText', i),
thing_id: postTypePrefix + this.getNodeParameter('postId', i),
thing_id: postTypePrefix + (this.getNodeParameter('postId', i) as string),
};
responseData = await redditApiRequest.call(this, 'POST', 'api/comment', qs);
@@ -255,7 +255,7 @@ export class Reddit implements INodeType {
const commentTypePrefix = 't1_';
const qs: IDataObject = {
id: commentTypePrefix + this.getNodeParameter('commentId', i),
id: commentTypePrefix + (this.getNodeParameter('commentId', i) as string),
};
await redditApiRequest.call(this, 'POST', 'api/del', qs);
@@ -272,7 +272,7 @@ export class Reddit implements INodeType {
const qs: IDataObject = {
text: this.getNodeParameter('replyText', i),
thing_id: commentTypePrefix + this.getNodeParameter('commentId', i),
thing_id: commentTypePrefix + (this.getNodeParameter('commentId', i) as string),
};
responseData = await redditApiRequest.call(this, 'POST', 'api/comment', qs);