moved proxy.service to proxy.tasks

This commit is contained in:
Bojan Kucera 2025-06-08 17:29:10 -04:00
parent ead13257b3
commit bf2fa003b9
3 changed files with 7 additions and 17 deletions

View file

@ -5,17 +5,17 @@ export const proxyProvider: ProviderConfig = {
service: 'proxy',
operations: {
'fetch-and-check': async (payload: { sources?: string[] }) => {
const { proxyService } = await import('../services/proxy.service');
const { proxyService } = await import('./proxy.tasks');
return await proxyService.fetchProxiesFromSources();
},
'check-specific': async (payload: { proxies: any[] }) => {
const { proxyService } = await import('../services/proxy.service');
const { proxyService } = await import('./proxy.tasks');
return await proxyService.checkProxies(payload.proxies);
},
'get-working-proxy': async (payload: { protocol?: string; country?: string; timeout?: number }) => {
const { proxyService } = await import('../services/proxy.service');
const { proxyService } = await import('./proxy.tasks');
return await proxyService.getWorkingProxy();
}
},