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:
@@ -114,7 +114,7 @@ export class GoogleChat implements INodeType {
|
||||
// select them easily
|
||||
async getSpaces(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
|
||||
const returnData: INodePropertyOptions[] = [];
|
||||
const spaces = await googleApiRequestAllItems.call(this, 'spaces', 'GET', `/v1/spaces`);
|
||||
const spaces = await googleApiRequestAllItems.call(this, 'spaces', 'GET', '/v1/spaces');
|
||||
for (const space of spaces) {
|
||||
returnData.push({
|
||||
name: space.displayName,
|
||||
@@ -142,7 +142,7 @@ export class GoogleChat implements INodeType {
|
||||
iss: email,
|
||||
sub: credential.data!.delegatedEmail || email,
|
||||
scope: scopes.join(' '),
|
||||
aud: `https://oauth2.googleapis.com/token`,
|
||||
aud: 'https://oauth2.googleapis.com/token',
|
||||
iat: now,
|
||||
exp: now,
|
||||
},
|
||||
@@ -274,13 +274,13 @@ export class GoogleChat implements INodeType {
|
||||
this,
|
||||
'spaces',
|
||||
'GET',
|
||||
`/v1/spaces`,
|
||||
'/v1/spaces',
|
||||
);
|
||||
} else {
|
||||
const limit = this.getNodeParameter('limit', i);
|
||||
qs.pageSize = limit;
|
||||
|
||||
responseData = await googleApiRequest.call(this, 'GET', `/v1/spaces`, undefined, qs);
|
||||
responseData = await googleApiRequest.call(this, 'GET', '/v1/spaces', undefined, qs);
|
||||
responseData = responseData.spaces;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user