diff --git a/CHANGELOG.md b/CHANGELOG.md index 4cadf1235..3ae9a2404 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## Unreleased + +### Fixed + +- Fixed the `No data provider has been found` error in the search (regression after `envalid` upgrade to `7.3.1` in Ghostfolio `1.157.0`) + ## 1.159.0 - 15.06.2022 ### Changed diff --git a/apps/api/src/services/configuration.service.ts b/apps/api/src/services/configuration.service.ts index 16f2e9e38..a187f4138 100644 --- a/apps/api/src/services/configuration.service.ts +++ b/apps/api/src/services/configuration.service.ts @@ -15,7 +15,7 @@ export class ConfigurationService { BASE_CURRENCY: str({ default: 'USD' }), CACHE_TTL: num({ default: 1 }), DATA_SOURCE_PRIMARY: str({ default: DataSource.YAHOO }), - DATA_SOURCES: json({ default: JSON.stringify([DataSource.YAHOO]) }), + DATA_SOURCES: json({ default: [DataSource.YAHOO] }), ENABLE_FEATURE_BLOG: bool({ default: false }), ENABLE_FEATURE_CUSTOM_SYMBOLS: bool({ default: false }), ENABLE_FEATURE_FEAR_AND_GREED_INDEX: bool({ default: false }), diff --git a/apps/api/src/services/interfaces/environment.interface.ts b/apps/api/src/services/interfaces/environment.interface.ts index 36e9c7261..6d7058be3 100644 --- a/apps/api/src/services/interfaces/environment.interface.ts +++ b/apps/api/src/services/interfaces/environment.interface.ts @@ -6,7 +6,7 @@ export interface Environment extends CleanedEnvAccessors { BASE_CURRENCY: string; CACHE_TTL: number; DATA_SOURCE_PRIMARY: string; - DATA_SOURCES: string | string[]; // string is not correct, error in envalid? + DATA_SOURCES: string[]; ENABLE_FEATURE_BLOG: boolean; ENABLE_FEATURE_CUSTOM_SYMBOLS: boolean; ENABLE_FEATURE_FEAR_AND_GREED_INDEX: boolean;