This commit is contained in:
Boki 2025-06-20 09:15:25 -04:00
parent 67c073e4f2
commit ee234edcd7
2 changed files with 2 additions and 2 deletions

View file

@ -108,7 +108,7 @@ export async function fetchSession(): Promise<Record<string, string> | undefined
}
}
export async function fetchExchanges(sessionHeaders: Record<string, string>): Promise<any> {
export async function fetchExchanges(sessionHeaders: Record<string, string>): Promise<unknown> {
try {
logger.info('🔍 Fetching exchanges with session headers...');

View file

@ -45,7 +45,7 @@ export class FileLoader implements ConfigLoader {
return JSON.parse(content);
} catch (error: unknown) {
// File not found is not an error (configs are optional)
if (error.code === 'ENOENT') {
if (error && typeof error === 'object' && 'code' in error && error.code === 'ENOENT') {
return null;
}
throw error;