mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 11:01:15 +00:00
refactor(core): Remove linting exceptions in nodes-base (no-changelog) (#4944)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user