Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍
TypeScript angularetffinancefintechghostfoliohacktoberfestinvestingnestjsosspersonal-financeportfolioprismasoftwarestocktrackertradingtypescriptwealth-managementweb
Feature/improve check for duplicates in preview step of activities import (comments) (#4498)
Marcin Szymański5754f0181993
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 3ec9773a45..3313e43c61 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0### Changed+- Improved the check for duplicates in the preview step of the activities import (allow different comments)- Improved the language localization for German (`fr`)- Upgraded `ng-extract-i18n-merge` from version `2.14.1` to `2.14.3`diff --git a/apps/api/src/app/import/import.service.ts b/apps/api/src/app/import/import.service.tsindex 729049fd17..9a4fff5eda 100644--- a/apps/api/src/app/import/import.service.ts+++ b/apps/api/src/app/import/import.service.ts@@ -519,6 +519,7 @@ export class ImportService {const isDuplicate = existingActivities.some((activity) => {return (activity.accountId === accountId &&+ activity.comment === comment &&activity.SymbolProfile.currency === currency &&activity.SymbolProfile.dataSource === dataSource &&isSameSecond(activity.date, date) &&