fixed browser, made payload optional

This commit is contained in:
Boki 2025-06-20 22:16:13 -04:00
parent 917f91715a
commit cde67db271
9 changed files with 10 additions and 12 deletions

View file

@ -13,7 +13,6 @@ import { ProxyManager } from '@stock-bot/utils';
import { exchangeRoutes, healthRoutes, queueRoutes } from './routes';
const config = initializeConfig();
console.log('Configuration loaded:', config);
const serviceConfig = config.service;
const databaseConfig = config.database;
const queueConfig = config.queue;
@ -252,7 +251,7 @@ shutdown.onShutdown(async () => {
logger.info('Shutting down loggers...');
await shutdownLoggers();
// Don't log after shutdown
} catch (error) {
} catch {
// Silently ignore logger shutdown errors
}
});

View file

@ -32,7 +32,6 @@ export function initializeExchangeSyncProvider() {
{
type: 'exchange-sync-daily',
operation: 'sync-ib-exchanges',
payload: {},
cronPattern: '0 3 * * *', // Daily at 3 AM
priority: 3,
description: 'Daily sync of IB exchanges to master table',

View file

@ -72,7 +72,6 @@ export function initializeIBProvider() {
{
type: 'ib-exchanges-and-symbols',
operation: 'ib-exchanges-and-symbols',
payload: {},
cronPattern: '0 0 * * 0', // Every Sunday at midnight
priority: 5,
description: 'Fetch and update IB exchanges and symbols data',

View file

@ -73,7 +73,6 @@ export function initializeProxyProvider() {
{
type: 'proxy-fetch-and-check',
operation: 'fetch-from-sources',
payload: {},
cronPattern: '0 0 * * 0', // Every week at midnight on Sunday
priority: 0,
description: 'Fetch and validate proxy list from sources',

View file

@ -62,7 +62,6 @@ export function initializeQMProvider() {
{
type: 'session-management',
operation: 'create-sessions',
payload: {},
cronPattern: '*/15 * * * * *', // Every minute
priority: 7,
immediately: true,
@ -71,7 +70,6 @@ export function initializeQMProvider() {
{
type: 'qm-maintnance',
operation: 'spider-symbol-search',
payload: {},
cronPattern: '0 0 * * 0', // Every minute
priority: 10,
description: 'Comprehensive symbol search using QM API',

View file

@ -63,7 +63,6 @@ export function initializeWebShareProvider() {
{
type: 'webshare-fetch',
operation: 'fetch-proxies',
payload: {},
cronPattern: '0 */6 * * *', // Every 6 hours
priority: 3,
description: 'Fetch fresh proxies from WebShare API',