moved proxy.service to proxy.tasks
This commit is contained in:
parent
ead13257b3
commit
bf2fa003b9
3 changed files with 7 additions and 17 deletions
|
|
@ -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();
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue