fixed up qm and added types to BaseHandler for typesafety

This commit is contained in:
Boki 2025-06-28 21:49:33 -04:00
parent 87b1cad4f5
commit 2e86598262
20 changed files with 164 additions and 109 deletions

View file

@ -3,7 +3,7 @@
* Supports dynamic operation registration with auto-indexing
*/
import type { MongoDBClient, Logger } from '@stock-bot/types';
import type { Logger, MongoDBClient } from '@stock-bot/types';
import type { IntradayCrawlSymbol, QMOperationConfig } from './types';
export class QMOperationTracker {
@ -118,7 +118,7 @@ export class QMOperationTracker {
await this.mongodb.updateOne(this.collectionName, { symbol }, update);
this.logger.trace('Updated symbol operation', {
this.logger.debug('Updated symbol operation', {
symbol,
operation: operationName,
status: data.status