more fixes

This commit is contained in:
Boki 2025-06-20 09:17:09 -04:00
parent ee234edcd7
commit 781ea7a9df
2 changed files with 2 additions and 2 deletions

View file

@ -170,7 +170,7 @@ export async function fetchExchanges(sessionHeaders: Record<string, string>): Pr
}
// Fetch symbols from IB using the session headers
export async function fetchSymbols(sessionHeaders: Record<string, string>): Promise<any> {
export async function fetchSymbols(sessionHeaders: Record<string, string>): Promise<unknown> {
try {
logger.info('🔍 Fetching symbols with session headers...');
// Configure the proxy

View file

@ -322,7 +322,7 @@ async function searchQMSymbolsAPI(query: string): Promise<string[]> {
const symbols = await response.json();
const mongoClient = getMongoDBClient();
const updatedSymbols = symbols.map((symbol: any) => {
const updatedSymbols = symbols.map((symbol: Record<string, unknown>) => {
return {
...symbol,
qmSearchCode: symbol.symbol, // Store original symbol for reference