qm fully refactored and ready for more

This commit is contained in:
Boki 2025-06-21 10:49:38 -04:00
parent ab0b7a5385
commit 24fda247aa
5 changed files with 36 additions and 48 deletions

View file

@ -3,12 +3,11 @@
*/
import { OperationContext } from '@stock-bot/utils';
import type { Logger } from '@stock-bot/logger';
import { initializeQMResources } from './session.operations';
export async function fetchExchanges(parentLogger?: Logger): Promise<unknown[] | null> {
const ctx = OperationContext.create('qm', 'exchanges', parentLogger);
export async function fetchExchanges(): Promise<unknown[] | null> {
const ctx = OperationContext.create('qm', 'exchanges');
try {
// Ensure resources are initialized
@ -16,7 +15,7 @@ export async function fetchExchanges(parentLogger?: Logger): Promise<unknown[] |
const sessionManager = QMSessionManager.getInstance();
if (!sessionManager.getInitialized()) {
await initializeQMResources(parentLogger);
await initializeQMResources();
}
ctx.logger.info('QM exchanges fetch - not implemented yet');