From 90fe46711462fdb0ee74a0a5fdeba5024e228226 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Mon, 1 May 2023 15:45:59 +0200 Subject: [PATCH] Feature/deprecate base currency (#1913) * Deprecate BASE_CURRENCY * Update changelog --- CHANGELOG.md | 6 ++++++ apps/api/src/main.ts | 11 +++++++++++ 2 files changed, 17 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2238c87b6..954df7f54 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 + +### Changed + +- Deprecated the use of the environment variable `BASE_CURRENCY` + ## 1.263.0 - 2023-04-30 ### Changed diff --git a/apps/api/src/main.ts b/apps/api/src/main.ts index 6def14ad0..91d030de0 100644 --- a/apps/api/src/main.ts +++ b/apps/api/src/main.ts @@ -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('BASE_CURRENCY'); const HOST = configService.get('HOST') || '0.0.0.0'; const PORT = configService.get('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.' + ); + } }); }