Feature/move data enhancer from data provider to data gathering (#437)
* Move data enhancers from data provider to data enhancer module * Update changelogpull/440/head
parent
e98dff877a
commit
1296f95602
@ -0,0 +1,15 @@
|
||||
import { TrackinsightDataEnhancerService } from '@ghostfolio/api/services/data-provider/data-enhancer/trackinsight/trackinsight.service';
|
||||
import { Module } from '@nestjs/common';
|
||||
|
||||
@Module({
|
||||
exports: ['DataEnhancers', TrackinsightDataEnhancerService],
|
||||
providers: [
|
||||
{
|
||||
inject: [TrackinsightDataEnhancerService],
|
||||
provide: 'DataEnhancers',
|
||||
useFactory: (trackinsight) => [trackinsight]
|
||||
},
|
||||
TrackinsightDataEnhancerService
|
||||
]
|
||||
})
|
||||
export class DataEnhancerModule {}
|
Loading…
Reference in new issue