mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 03:12:15 +00:00
refactor: Extract ISOCountryCodes into a single place (no-changelog) (#9947)
This commit is contained in:
committed by
GitHub
parent
908ddd8a24
commit
ddfb240694
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user