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

@ -4,6 +4,7 @@ import {
Operation,
ScheduledOperation,
} from '@stock-bot/handlers';
import type { DataIngestionServices } from '../../types';
import {
checkSessions,
createSession,
@ -25,7 +26,7 @@ import {
import { initializeQMOperations } from './shared/operation-registry';
@Handler('qm')
export class QMHandler extends BaseHandler {
export class QMHandler extends BaseHandler<DataIngestionServices> {
constructor(services: any) {
super(services); // Handler name read from @Handler decorator
// Initialize operations after super() so services are available