From e9ac9057ff63311b1a37fef9f35051dc164d022e Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Sat, 30 Dec 2023 21:11:56 +0100 Subject: [PATCH 1/3] Fix debug instructions (#2802) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 09270e529..0ee4434a1 100644 --- a/README.md +++ b/README.md @@ -166,7 +166,7 @@ Ghostfolio is available for various home server systems, including [Runtipi](htt #### Debug -Run `yarn watch:server` and click _Launch Program_ in [Visual Studio Code](https://code.visualstudio.com) +Run `yarn watch:server` and click _Debug API_ in [Visual Studio Code](https://code.visualstudio.com) #### Serve From 53ce37a83a58a093ef9f86f5f93b1ed12ec153c8 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Sun, 31 Dec 2023 10:23:13 +0100 Subject: [PATCH 2/3] Update OSS friends (#2799) --- apps/client/src/assets/oss-friends.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/client/src/assets/oss-friends.json b/apps/client/src/assets/oss-friends.json index d22f4c030..ffa759f0d 100644 --- a/apps/client/src/assets/oss-friends.json +++ b/apps/client/src/assets/oss-friends.json @@ -1,5 +1,5 @@ { - "createdAt": "2023-11-30T00:00:00.000Z", + "createdAt": "2023-12-30T00:00:00.000Z", "data": [ { "name": "BoxyHQ", @@ -71,6 +71,11 @@ "description": "HTMX is a dependency-free JavaScript library that allows you to access AJAX, CSS Transitions, WebSockets, and Server Sent Events directly in HTML.", "href": "https://htmx.org" }, + { + "name": "Inbox Zero", + "description": "Inbox Zero makes it easy to clean up your inbox and reach inbox zero fast. It provides bulk newsletter unsubscribe, cold email blocking, email analytics, and AI automations.", + "href": "https://getinboxzero.com" + }, { "name": "Infisical", "description": "Open source, end-to-end encrypted platform that lets you securely manage secrets and configs across your team, devices, and infrastructure.", From b89bf1d5e80b4c17c7e110ecd88fdc56cabcb122 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Sun, 31 Dec 2023 10:23:56 +0100 Subject: [PATCH 3/3] Feature/increase timeout to load currencies (#2800) * Increase timeout * Update changelog --- CHANGELOG.md | 1 + .../services/exchange-rate-data/exchange-rate-data.service.ts | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 05ad3599c..744f3f6f7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed - Changed the performance calculation to a time-weighted approach +- Increased the timeout to load currencies in the exchange rate data service - Exposed the environment variable `REQUEST_TIMEOUT` - Used the `HasPermission` annotation in endpoints - Improved the language localization for German (`de`) diff --git a/apps/api/src/services/exchange-rate-data/exchange-rate-data.service.ts b/apps/api/src/services/exchange-rate-data/exchange-rate-data.service.ts index cf61786c9..9eecd400d 100644 --- a/apps/api/src/services/exchange-rate-data/exchange-rate-data.service.ts +++ b/apps/api/src/services/exchange-rate-data/exchange-rate-data.service.ts @@ -11,6 +11,7 @@ import { DATE_FORMAT, getYesterday } from '@ghostfolio/common/helper'; import { Injectable, Logger } from '@nestjs/common'; import { format, isToday } from 'date-fns'; import { isNumber, uniq } from 'lodash'; +import ms from 'ms'; @Injectable() export class ExchangeRateDataService { @@ -75,7 +76,8 @@ export class ExchangeRateDataService { const quotes = await this.dataProviderService.getQuotes({ items: this.currencyPairs.map(({ dataSource, symbol }) => { return { dataSource, symbol }; - }) + }), + requestTimeout: ms('30 seconds') }); for (const symbol of Object.keys(quotes)) {