more lint fixes
This commit is contained in:
parent
781ea7a9df
commit
2e073b1d44
4 changed files with 47 additions and 35 deletions
|
|
@ -2,6 +2,8 @@
|
|||
* Enhanced Sync Manager - Improved syncing with comprehensive exchange data
|
||||
*/
|
||||
import { getLogger } from '@stock-bot/logger';
|
||||
import { MongoDBClient } from '@stock-bot/mongodb-client';
|
||||
import { PostgreSQLClient } from '@stock-bot/postgres-client';
|
||||
import { getMongoDBClient, getPostgreSQLClient } from '../clients';
|
||||
|
||||
const logger = getLogger('enhanced-sync-manager');
|
||||
|
|
@ -32,8 +34,8 @@ interface SyncStatus {
|
|||
|
||||
export class EnhancedSyncManager {
|
||||
private isInitialized = false;
|
||||
private mongoClient: any;
|
||||
private postgresClient: any;
|
||||
private mongoClient: MongoDBClient;
|
||||
private postgresClient: PostgreSQLClient;
|
||||
private exchangeCache: Map<string, ExchangeMapping> = new Map();
|
||||
|
||||
async initialize(): Promise<void> {
|
||||
|
|
@ -301,7 +303,7 @@ export class EnhancedSyncManager {
|
|||
// Start transaction
|
||||
await this.postgresClient.query('BEGIN');
|
||||
|
||||
let symbols: any[] = [];
|
||||
let symbols: Record<string, unknown>[] = [];
|
||||
|
||||
// Get symbols based on provider
|
||||
const db = this.getMongoDatabase();
|
||||
|
|
|
|||
|
|
@ -8,8 +8,8 @@ const logger = getLogger('sync-manager');
|
|||
|
||||
export class SyncManager {
|
||||
private isInitialized = false;
|
||||
private mongoClient: any;
|
||||
private postgresClient: any;
|
||||
private mongoClient: unknown;
|
||||
private postgresClient: unknown;
|
||||
|
||||
async initialize(): Promise<void> {
|
||||
if (this.isInitialized) {
|
||||
|
|
@ -153,7 +153,7 @@ export class SyncManager {
|
|||
/**
|
||||
* Get sync status for all providers
|
||||
*/
|
||||
async getSyncStatus(): Promise<any[]> {
|
||||
async getSyncStatus(): Promise<Record<string, unknown>[]> {
|
||||
const query = 'SELECT * FROM sync_status ORDER BY provider, data_type';
|
||||
const result = await this.postgresClient.query(query);
|
||||
return result.rows;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue