fixed up qm and added types to BaseHandler for typesafety
This commit is contained in:
parent
87b1cad4f5
commit
2e86598262
20 changed files with 164 additions and 109 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue