This commit is contained in:
Boki 2025-06-18 19:35:23 -04:00
parent 2678ad90d4
commit 1bb6b62408

View file

@ -413,7 +413,6 @@ export class EnhancedSyncManager {
logger.info(`Loaded ${this.exchangeCache.size} exchanges into cache`);
}
private async syncEODExchanges(): Promise<SyncResult> {
const db = this.getMongoDatabase();
const exchanges = await db.collection('eodExchanges').find({ active: true }).toArray();
@ -482,7 +481,9 @@ export class EnhancedSyncManager {
currency: string | null,
confidence: number
): Promise<void> {
if (!providerExchangeCode) return;
if (!providerExchangeCode) {
return;
}
// Check if mapping already exists
const existingMapping = await this.findProviderExchangeMapping(provider, providerExchangeCode);
@ -735,7 +736,9 @@ export class EnhancedSyncManager {
}
private normalizeCountryCode(countryCode: string): string | null {
if (!countryCode) return null;
if (!countryCode) {
return null;
}
// Map common country variations to ISO 2-letter codes
const countryMap: Record<string, string> = {