initial data-ingestion refactor

This commit is contained in:
Boki 2025-06-21 15:18:25 -04:00
parent 09d907a10c
commit 4f89affc2b
19 changed files with 309 additions and 549 deletions

View file

@ -8,11 +8,12 @@ import {
type HandlerConfigWithSchedule,
} from '@stock-bot/queue';
import { updateProxies } from '@stock-bot/utils';
import type { ServiceContainer } from '@stock-bot/connection-factory';
const logger = getLogger('webshare-provider');
// Initialize and register the WebShare provider
export function initializeWebShareProvider() {
export function initializeWebShareProvider(container: ServiceContainer) {
logger.debug('Registering WebShare provider with scheduled jobs...');
const webShareProviderConfig: HandlerConfigWithSchedule = {
@ -76,6 +77,6 @@ export function initializeWebShareProvider() {
}
export const webShareProvider = {
initialize: initializeWebShareProvider,
initialize: (container: ServiceContainer) => initializeWebShareProvider(container),
};