refactoring
This commit is contained in:
parent
3fb9df425c
commit
62a2f15dab
12 changed files with 670 additions and 13 deletions
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
import type { IServiceContainer } from '@stock-bot/handlers';
|
||||
import type { IDataIngestionServices } from '../service-interfaces';
|
||||
import { ProxyManager } from '@stock-bot/proxy';
|
||||
|
||||
/**
|
||||
* Adapter that converts IDataIngestionServices to IServiceContainer
|
||||
|
|
@ -22,6 +23,10 @@ export class DataIngestionServiceAdapter implements IServiceContainer {
|
|||
// HTTP client not in current data services - will be added when needed
|
||||
return null;
|
||||
}
|
||||
get proxy() {
|
||||
// Return singleton proxy manager instance
|
||||
return ProxyManager.getInstance();
|
||||
}
|
||||
|
||||
// Database clients
|
||||
get mongodb() { return this.dataServices.mongodb; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue