lint fix
This commit is contained in:
parent
2678ad90d4
commit
1bb6b62408
1 changed files with 6 additions and 3 deletions
|
|
@ -413,7 +413,6 @@ export class EnhancedSyncManager {
|
||||||
logger.info(`Loaded ${this.exchangeCache.size} exchanges into cache`);
|
logger.info(`Loaded ${this.exchangeCache.size} exchanges into cache`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private async syncEODExchanges(): Promise<SyncResult> {
|
private async syncEODExchanges(): Promise<SyncResult> {
|
||||||
const db = this.getMongoDatabase();
|
const db = this.getMongoDatabase();
|
||||||
const exchanges = await db.collection('eodExchanges').find({ active: true }).toArray();
|
const exchanges = await db.collection('eodExchanges').find({ active: true }).toArray();
|
||||||
|
|
@ -482,7 +481,9 @@ export class EnhancedSyncManager {
|
||||||
currency: string | null,
|
currency: string | null,
|
||||||
confidence: number
|
confidence: number
|
||||||
): Promise<void> {
|
): Promise<void> {
|
||||||
if (!providerExchangeCode) return;
|
if (!providerExchangeCode) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Check if mapping already exists
|
// Check if mapping already exists
|
||||||
const existingMapping = await this.findProviderExchangeMapping(provider, providerExchangeCode);
|
const existingMapping = await this.findProviderExchangeMapping(provider, providerExchangeCode);
|
||||||
|
|
@ -735,7 +736,9 @@ export class EnhancedSyncManager {
|
||||||
}
|
}
|
||||||
|
|
||||||
private normalizeCountryCode(countryCode: string): string | null {
|
private normalizeCountryCode(countryCode: string): string | null {
|
||||||
if (!countryCode) return null;
|
if (!countryCode) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
// Map common country variations to ISO 2-letter codes
|
// Map common country variations to ISO 2-letter codes
|
||||||
const countryMap: Record<string, string> = {
|
const countryMap: Record<string, string> = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue