From 805f4b05beef3c2919457c7de54115c233bd1e56 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Sun, 16 Oct 2022 20:19:27 +0200 Subject: [PATCH] Release 1.205.1 (#1368) --- CHANGELOG.md | 3 +-- apps/client/src/app/core/auth.guard.ts | 6 +++++- package.json | 2 +- .../migration.sql | 9 --------- prisma/schema.prisma | 1 + 5 files changed, 8 insertions(+), 13 deletions(-) delete mode 100644 prisma/migrations/20221016065824_removed_rakuten_from_data_source/migration.sql diff --git a/CHANGELOG.md b/CHANGELOG.md index 520a6d6e0..c7e3f2363 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,13 +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). -## 1.205.0 - 16.10.2022 +## 1.205.1 - 16.10.2022 ### Changed - Persisted the language on url change - Improved the portfolio evolution chart -- Removed the data source type `RAKUTEN` - Refactored the appearance (dark mode) in user settings (from `appearance` to `colorScheme`) - Improved the wording on the landing page diff --git a/apps/client/src/app/core/auth.guard.ts b/apps/client/src/app/core/auth.guard.ts index 349d44fb4..fca271755 100644 --- a/apps/client/src/app/core/auth.guard.ts +++ b/apps/client/src/app/core/auth.guard.ts @@ -77,9 +77,13 @@ export class AuthGuard implements CanActivate { if (userLanguage && document.documentElement.lang !== userLanguage) { this.dataService - .putUserSetting({ language: userLanguage }) + .putUserSetting({ language: document.documentElement.lang }) .subscribe(() => { this.userService.remove(); + + setTimeout(() => { + window.location.reload(); + }, 300); }); resolve(false); diff --git a/package.json b/package.json index fac7e9c3a..25e04c86f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ghostfolio", - "version": "1.205.0", + "version": "1.205.1", "homepage": "https://ghostfol.io", "license": "AGPL-3.0", "scripts": { diff --git a/prisma/migrations/20221016065824_removed_rakuten_from_data_source/migration.sql b/prisma/migrations/20221016065824_removed_rakuten_from_data_source/migration.sql deleted file mode 100644 index 448e240ec..000000000 --- a/prisma/migrations/20221016065824_removed_rakuten_from_data_source/migration.sql +++ /dev/null @@ -1,9 +0,0 @@ --- AlterEnum -BEGIN; -CREATE TYPE "DataSource_new" AS ENUM ('ALPHA_VANTAGE', 'EOD_HISTORICAL_DATA', 'GHOSTFOLIO', 'GOOGLE_SHEETS', 'MANUAL', 'RAPID_API', 'YAHOO'); -ALTER TABLE "MarketData" ALTER COLUMN "dataSource" TYPE "DataSource_new" USING ("dataSource"::text::"DataSource_new"); -ALTER TABLE "SymbolProfile" ALTER COLUMN "dataSource" TYPE "DataSource_new" USING ("dataSource"::text::"DataSource_new"); -ALTER TYPE "DataSource" RENAME TO "DataSource_old"; -ALTER TYPE "DataSource_new" RENAME TO "DataSource"; -DROP TYPE "DataSource_old"; -COMMIT; diff --git a/prisma/schema.prisma b/prisma/schema.prisma index e17f060b7..062d59b06 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -206,6 +206,7 @@ enum DataSource { GHOSTFOLIO GOOGLE_SHEETS MANUAL + RAKUTEN RAPID_API YAHOO }