Skip to content

Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍

Feature/Add user account currency to export (#3194)

Christoph Califice0edebe30e108
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 783e591747..4a2431c42f 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 90090119e7..1ff18ce9ca 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 dcd7aa60d8..de3d7cf025 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 } };
}