From b8bff7d2c68796a9250cd250edadba057602fde2 Mon Sep 17 00:00:00 2001 From: Thomas <4159106+dtslvr@users.noreply.github.com> Date: Mon, 1 May 2023 11:04:22 +0200 Subject: [PATCH] Deprecate BASE_CURRENCY --- apps/api/src/main.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) 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.' + ); + } }); }