mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
refactor: Lint for no unneeded backticks (#5057) (no-changelog)
* ✨ Create rule `no-unneeded-backticks` * 👕 Enable rule * ⚡ Run rule on `cli` * ⚡ Run rule on `core` * ⚡ Run rule on `workflow` * ⚡ Rule rule on `design-system` * ⚡ Run rule on `node-dev` * ⚡ Run rule on `editor-ui` * ⚡ Run rule on `nodes-base`
This commit is contained in:
@@ -117,7 +117,7 @@ async function getAccessToken(
|
||||
iss: credentials.email,
|
||||
sub: credentials.delegatedEmail || credentials.email,
|
||||
scope: scopes.join(' '),
|
||||
aud: `https://oauth2.googleapis.com/token`,
|
||||
aud: 'https://oauth2.googleapis.com/token',
|
||||
iat: now,
|
||||
exp: now + 3600,
|
||||
},
|
||||
|
||||
@@ -2041,7 +2041,7 @@ export class GoogleDrive implements INodeType {
|
||||
if (filter) {
|
||||
query.push(`name contains '${filter.replace("'", "\\'")}'`);
|
||||
}
|
||||
query.push(`mimeType != 'application/vnd.google-apps.folder'`);
|
||||
query.push("mimeType != 'application/vnd.google-apps.folder'");
|
||||
const res = await googleApiRequest.call(this, 'GET', '/drive/v3/files', undefined, {
|
||||
q: query.join(' and '),
|
||||
pageToken: paginationToken,
|
||||
@@ -2066,7 +2066,7 @@ export class GoogleDrive implements INodeType {
|
||||
if (filter) {
|
||||
query.push(`name contains '${filter.replace("'", "\\'")}'`);
|
||||
}
|
||||
query.push(`mimeType = 'application/vnd.google-apps.folder'`);
|
||||
query.push("mimeType = 'application/vnd.google-apps.folder'");
|
||||
const res = await googleApiRequest.call(this, 'GET', '/drive/v3/files', undefined, {
|
||||
q: query.join(' and '),
|
||||
pageToken: paginationToken,
|
||||
@@ -2137,7 +2137,7 @@ export class GoogleDrive implements INodeType {
|
||||
|
||||
Object.assign(body, options);
|
||||
|
||||
const response = await googleApiRequest.call(this, 'POST', `/drive/v3/drives`, body, {
|
||||
const response = await googleApiRequest.call(this, 'POST', '/drive/v3/drives', body, {
|
||||
requestId: uuid(),
|
||||
});
|
||||
|
||||
@@ -2211,13 +2211,13 @@ export class GoogleDrive implements INodeType {
|
||||
this,
|
||||
'drives',
|
||||
'GET',
|
||||
`/drive/v3/drives`,
|
||||
'/drive/v3/drives',
|
||||
{},
|
||||
qs,
|
||||
);
|
||||
} else {
|
||||
qs.pageSize = this.getNodeParameter('limit', i);
|
||||
const data = await googleApiRequest.call(this, 'GET', `/drive/v3/drives`, {}, qs);
|
||||
const data = await googleApiRequest.call(this, 'GET', '/drive/v3/drives', {}, qs);
|
||||
response = data.drives as IDataObject[];
|
||||
}
|
||||
|
||||
@@ -2489,7 +2489,7 @@ export class GoogleDrive implements INodeType {
|
||||
supportsAllDrives: queryCorpora !== '' || driveId !== '',
|
||||
};
|
||||
|
||||
const response = await googleApiRequest.call(this, 'GET', `/drive/v3/files`, {}, qs);
|
||||
const response = await googleApiRequest.call(this, 'GET', '/drive/v3/files', {}, qs);
|
||||
|
||||
const files = response.files;
|
||||
|
||||
@@ -2568,7 +2568,7 @@ export class GoogleDrive implements INodeType {
|
||||
let response = await googleApiRequest.call(
|
||||
this,
|
||||
'POST',
|
||||
`/upload/drive/v3/files`,
|
||||
'/upload/drive/v3/files',
|
||||
body,
|
||||
qs,
|
||||
undefined,
|
||||
|
||||
@@ -312,7 +312,7 @@ export class GoogleDriveTrigger implements INodeType {
|
||||
this,
|
||||
'drives',
|
||||
'GET',
|
||||
`/drive/v3/drives`,
|
||||
'/drive/v3/drives',
|
||||
);
|
||||
returnData.push({
|
||||
name: 'Root',
|
||||
@@ -355,9 +355,9 @@ export class GoogleDriveTrigger implements INodeType {
|
||||
// }
|
||||
|
||||
if (event.startsWith('file')) {
|
||||
query.push(`mimeType != 'application/vnd.google-apps.folder'`);
|
||||
query.push("mimeType != 'application/vnd.google-apps.folder'");
|
||||
} else {
|
||||
query.push(`mimeType = 'application/vnd.google-apps.folder'`);
|
||||
query.push("mimeType = 'application/vnd.google-apps.folder'");
|
||||
}
|
||||
|
||||
if (options.fileType && options.fileType !== 'all') {
|
||||
@@ -380,10 +380,10 @@ export class GoogleDriveTrigger implements INodeType {
|
||||
|
||||
if (this.getMode() === 'manual') {
|
||||
qs.pageSize = 1;
|
||||
files = await googleApiRequest.call(this, 'GET', `/drive/v3/files`, {}, qs);
|
||||
files = await googleApiRequest.call(this, 'GET', '/drive/v3/files', {}, qs);
|
||||
files = files.files;
|
||||
} else {
|
||||
files = await googleApiRequestAllItems.call(this, 'files', 'GET', `/drive/v3/files`, {}, qs);
|
||||
files = await googleApiRequestAllItems.call(this, 'files', 'GET', '/drive/v3/files', {}, qs);
|
||||
}
|
||||
|
||||
if (triggerOn === 'specificFile' && this.getMode() !== 'manual') {
|
||||
|
||||
Reference in New Issue
Block a user