From 0edebe30e108a52df03951aece6f9bad7d4fa3b4 Mon Sep 17 00:00:00 2001 From: Christoph Califice Date: Wed, 27 Mar 2024 14:08:34 -0300 Subject: [PATCH] Feature/Add user account currency to export (#3194) * Add user account currency to export * Update changelog --- CHANGELOG.md | 6 ++++++ apps/api/src/app/export/export.service.ts | 5 ++++- libs/common/src/lib/interfaces/export.interface.ts | 1 + 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 783e5917..4a2431c4 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 + +### Added + +- Extended the export functionality by the user account’s currency + ## 2.67.0 - 2024-03-26 ### Added diff --git a/apps/api/src/app/export/export.service.ts b/apps/api/src/app/export/export.service.ts index 90090119..1ff18ce9 100644 --- a/apps/api/src/app/export/export.service.ts +++ b/apps/api/src/app/export/export.service.ts @@ -95,7 +95,10 @@ export class ExportService { : SymbolProfile.symbol }; } - ) + ), + user: { + settings: { currency: userCurrency } + } }; } } diff --git a/libs/common/src/lib/interfaces/export.interface.ts b/libs/common/src/lib/interfaces/export.interface.ts index dcd7aa60..de3d7cf0 100644 --- a/libs/common/src/lib/interfaces/export.interface.ts +++ b/libs/common/src/lib/interfaces/export.interface.ts @@ -16,4 +16,5 @@ export interface Export { | 'updatedAt' | 'userId' > & { date: string; symbol: string })[]; + user: { settings: { currency: string } }; }