mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
refactor(core): Remove linting exceptions in nodes-base (no-changelog) (#4944)
This commit is contained in:
@@ -30,7 +30,7 @@ export async function twitterApiRequest(
|
||||
method,
|
||||
body,
|
||||
qs,
|
||||
url: uri || `https://api.twitter.com/1.1${resource}`,
|
||||
url: uri ?? `https://api.twitter.com/1.1${resource}`,
|
||||
json: true,
|
||||
};
|
||||
try {
|
||||
|
||||
@@ -21,7 +21,7 @@ import {
|
||||
|
||||
import { ITweet } from './TweetInterface';
|
||||
|
||||
const ISO6391 = require('iso-639-1');
|
||||
import ISO6391 from 'iso-639-1';
|
||||
|
||||
export class Twitter implements INodeType {
|
||||
description: INodeTypeDescription = {
|
||||
@@ -247,7 +247,7 @@ export class Twitter implements INodeType {
|
||||
}
|
||||
}
|
||||
|
||||
qs.tweet_mode = additionalFields.tweetMode || 'compat';
|
||||
qs.tweet_mode = additionalFields.tweetMode ?? 'compat';
|
||||
|
||||
if (returnAll) {
|
||||
responseData = await twitterApiRequestAllItems.call(
|
||||
|
||||
Reference in New Issue
Block a user