more fixes
This commit is contained in:
parent
ee234edcd7
commit
781ea7a9df
2 changed files with 2 additions and 2 deletions
|
|
@ -170,7 +170,7 @@ export async function fetchExchanges(sessionHeaders: Record<string, string>): Pr
|
||||||
}
|
}
|
||||||
|
|
||||||
// Fetch symbols from IB using the session headers
|
// 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 {
|
try {
|
||||||
logger.info('🔍 Fetching symbols with session headers...');
|
logger.info('🔍 Fetching symbols with session headers...');
|
||||||
// Configure the proxy
|
// Configure the proxy
|
||||||
|
|
|
||||||
|
|
@ -322,7 +322,7 @@ async function searchQMSymbolsAPI(query: string): Promise<string[]> {
|
||||||
|
|
||||||
const symbols = await response.json();
|
const symbols = await response.json();
|
||||||
const mongoClient = getMongoDBClient();
|
const mongoClient = getMongoDBClient();
|
||||||
const updatedSymbols = symbols.map((symbol: any) => {
|
const updatedSymbols = symbols.map((symbol: Record<string, unknown>) => {
|
||||||
return {
|
return {
|
||||||
...symbol,
|
...symbol,
|
||||||
qmSearchCode: symbol.symbol, // Store original symbol for reference
|
qmSearchCode: symbol.symbol, // Store original symbol for reference
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue