mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 04:34:06 -08:00
refactor: Correct spelling mistakes (no-changelog) (#9305)
This commit is contained in:
parent
828649d7e7
commit
f4e2c695f2
|
@ -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,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue