refactor: Correct spelling mistakes (no-changelog) (#9305)

This commit is contained in:
n8n-ninja 2024-06-20 14:10:40 +02:00 committed by GitHub
parent 828649d7e7
commit f4e2c695f2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 15 additions and 15 deletions

View file

@ -96,15 +96,15 @@ export class GoogleAnalyticsV1 implements INodeType {
'https://www.googleapis.com/analytics/v3/metadata/ga/columns', 'https://www.googleapis.com/analytics/v3/metadata/ga/columns',
); );
for (const dimesion of dimensions) { for (const dimension of dimensions) {
if ( if (
dimesion.attributes.type === 'DIMENSION' && dimension.attributes.type === 'DIMENSION' &&
dimesion.attributes.status !== 'DEPRECATED' dimension.attributes.status !== 'DEPRECATED'
) { ) {
returnData.push({ returnData.push({
name: dimesion.attributes.uiName, name: dimension.attributes.uiName,
value: dimesion.id, value: dimension.id,
description: dimesion.attributes.description, description: dimension.attributes.description,
}); });
} }
} }

View file

@ -13,12 +13,12 @@ export async function getDimensions(this: ILoadOptionsFunctions): Promise<INodeP
'https://www.googleapis.com/analytics/v3/metadata/ga/columns', 'https://www.googleapis.com/analytics/v3/metadata/ga/columns',
); );
for (const dimesion of dimensions) { for (const dimension of dimensions) {
if (dimesion.attributes.type === 'DIMENSION' && dimesion.attributes.status !== 'DEPRECATED') { if (dimension.attributes.type === 'DIMENSION' && dimension.attributes.status !== 'DEPRECATED') {
returnData.push({ returnData.push({
name: dimesion.attributes.uiName, name: dimension.attributes.uiName,
value: dimesion.id, value: dimension.id,
description: dimesion.attributes.description, description: dimension.attributes.description,
}); });
} }
} }
@ -118,11 +118,11 @@ export async function getDimensionsGA4(
{ fields: 'dimensions' }, { fields: 'dimensions' },
); );
for (const dimesion of dimensions) { for (const dimension of dimensions) {
returnData.push({ returnData.push({
name: dimesion.uiName as string, name: dimension.uiName as string,
value: dimesion.apiName as string, value: dimension.apiName as string,
description: dimesion.description as string, description: dimension.description as string,
}); });
} }
return sortLoadOptions(returnData); return sortLoadOptions(returnData);