refactored data-service fully

This commit is contained in:
Boki 2025-06-21 11:13:50 -04:00
parent 5c3f02228d
commit 67833a2fd7
18 changed files with 952 additions and 904 deletions

View file

@ -18,7 +18,7 @@ export function initializeProxyProvider() {
'fetch-from-sources': createJobHandler(async () => {
// Fetch proxies from all configured sources
handlerLogger.info('Processing fetch proxies from sources request');
const { fetchProxiesFromSources } = await import('./proxy.operations');
const { fetchProxiesFromSources } = await import('./operations/fetch.operations');
const { processItems } = await import('@stock-bot/queue');
// Fetch all proxies from sources
@ -65,7 +65,7 @@ export function initializeProxyProvider() {
handlerLogger.debug('Processing proxy check request', {
proxy: `${payload.host}:${payload.port}`,
});
const { checkProxy } = await import('./proxy.operations');
const { checkProxy } = await import('./operations/check.operations');
return checkProxy(payload);
}),
},