Browse Source
Feature/deprecate base currency (#1913)
* Deprecate BASE_CURRENCY
* Update changelog
pull/1915/head
Thomas Kaul
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
17 additions and
0 deletions
-
CHANGELOG.md
-
apps/api/src/main.ts
|
|
@ -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 |
|
|
|
|
|
|
|
### Changed |
|
|
|
|
|
|
|
- Deprecated the use of the environment variable `BASE_CURRENCY` |
|
|
|
|
|
|
|
## 1.263.0 - 2023-04-30 |
|
|
|
|
|
|
|
### Changed |
|
|
|
|
|
@ -32,12 +32,23 @@ async function bootstrap() { |
|
|
|
// Support 10mb csv/json files for importing activities
|
|
|
|
app.use(bodyParser.json({ limit: '10mb' })); |
|
|
|
|
|
|
|
const BASE_CURRENCY = configService.get<string>('BASE_CURRENCY'); |
|
|
|
const HOST = configService.get<string>('HOST') || '0.0.0.0'; |
|
|
|
const PORT = configService.get<number>('PORT') || 3333; |
|
|
|
|
|
|
|
await app.listen(PORT, HOST, () => { |
|
|
|
logLogo(); |
|
|
|
Logger.log(`Listening at http://${HOST}:${PORT}`); |
|
|
|
Logger.log(''); |
|
|
|
|
|
|
|
if (BASE_CURRENCY) { |
|
|
|
Logger.warn( |
|
|
|
`The environment variable "BASE_CURRENCY" is deprecated and will be removed in Ghostfolio 2.0.` |
|
|
|
); |
|
|
|
Logger.warn( |
|
|
|
'Please use the currency converter in the activity dialog instead.' |
|
|
|
); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|