refactoring to remove a lot of junk

This commit is contained in:
Boki 2025-06-22 16:57:08 -04:00
parent 5318158e59
commit d858222af7
33 changed files with 505 additions and 367 deletions

View file

@ -1,9 +1,9 @@
import { getLogger } from '@stock-bot/logger';
import { createJobHandler, handlerRegistry, type HandlerConfigWithSchedule } from '@stock-bot/types';
import { fetch } from '@stock-bot/utils';
import type { Collection } from 'mongodb';
import type { IServiceContainer } from '../types/service-container';
import type { ExecutionContext, IHandler } from '../types/types';
import type { Collection } from 'mongodb';
/**
* Abstract base class for all handlers with improved DI
@ -196,7 +196,7 @@ export abstract class BaseHandler implements IHandler {
*/
protected hasService(name: keyof IServiceContainer): boolean {
const service = this[name as keyof this];
return service != null;
return service !== null;
}
/**