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',
);
for (const dimesion of dimensions) {
for (const dimension of dimensions) {
if (
dimesion.attributes.type === 'DIMENSION' &&
dimesion.attributes.status !== 'DEPRECATED'
dimension.attributes.type === 'DIMENSION' &&
dimension.attributes.status !== 'DEPRECATED'
) {
returnData.push({
name: dimesion.attributes.uiName,
value: dimesion.id,
description: dimesion.attributes.description,
name: dimension.attributes.uiName,
value: dimension.id,
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',
);
for (const dimesion of dimensions) {
if (dimesion.attributes.type === 'DIMENSION' && dimesion.attributes.status !== 'DEPRECATED') {
for (const dimension of dimensions) {
if (dimension.attributes.type === 'DIMENSION' && dimension.attributes.status !== 'DEPRECATED') {
returnData.push({
name: dimesion.attributes.uiName,
value: dimesion.id,
description: dimesion.attributes.description,
name: dimension.attributes.uiName,
value: dimension.id,
description: dimension.attributes.description,
});
}
}
@ -118,11 +118,11 @@ export async function getDimensionsGA4(
{ fields: 'dimensions' },
);
for (const dimesion of dimensions) {
for (const dimension of dimensions) {
returnData.push({
name: dimesion.uiName as string,
value: dimesion.apiName as string,
description: dimesion.description as string,
name: dimension.uiName as string,
value: dimension.apiName as string,
description: dimension.description as string,
});
}
return sortLoadOptions(returnData);