refactor: Extract ISOCountryCodes into a single place (no-changelog) (#9947)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2024-07-04 21:18:28 +02:00
committed by GitHub
parent 908ddd8a24
commit ddfb240694
10 changed files with 20 additions and 5171 deletions

View File

@@ -22,7 +22,7 @@ import { videoFields, videoOperations } from './VideoDescription';
import { videoCategoryFields, videoCategoryOperations } from './VideoCategoryDescription';
import { countriesCodes } from './CountryCodes';
import { isoCountryCodes } from '@utils/ISOCountryCodes';
const UPLOAD_CHUNK_SIZE = 1024 * 1024;
@@ -120,7 +120,7 @@ export class YouTube implements INodeType {
// select them easily
async getCountriesCodes(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
const returnData: INodePropertyOptions[] = [];
for (const countryCode of countriesCodes) {
for (const countryCode of isoCountryCodes) {
const countryCodeName = `${countryCode.name} - ${countryCode.alpha2}`;
const countryCodeId = countryCode.alpha2;
returnData.push({