mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +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:
@@ -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