From 3540d6dd64c0205878cb06557a322a93a613e633 Mon Sep 17 00:00:00 2001 From: Christoph Califice Date: Mon, 25 Mar 2024 21:51:56 -0300 Subject: [PATCH] 3148 - add user currency to export --- apps/api/src/app/export/export.service.ts | 5 ++++- libs/common/src/lib/interfaces/export.interface.ts | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/api/src/app/export/export.service.ts b/apps/api/src/app/export/export.service.ts index 90090119e..1ff18ce9c 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 dcd7aa60d..de3d7cf02 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 } }; }