Browse Source

Fix data source of Fear & Greed Index

pull/840/head
Thomas 3 years ago
parent
commit
dafc872758
  1. 12
      apps/api/src/app/info/info.service.ts

12
apps/api/src/app/info/info.service.ts

@ -52,9 +52,15 @@ export class InfoService {
}
if (this.configurationService.get('ENABLE_FEATURE_FEAR_AND_GREED_INDEX')) {
info.fearAndGreedDataSource = encodeDataSource(
ghostfolioFearAndGreedIndexDataSource
);
if (
this.configurationService.get('ENABLE_FEATURE_SUBSCRIPTION') === true
) {
info.fearAndGreedDataSource = encodeDataSource(
ghostfolioFearAndGreedIndexDataSource
);
} else {
info.fearAndGreedDataSource = ghostfolioFearAndGreedIndexDataSource;
}
}
if (this.configurationService.get('ENABLE_FEATURE_IMPORT')) {

Loading…
Cancel
Save