Browse Source

Feature/improve check for duplicates in preview step of activities import (comments) (#4498)

* Improve check for duplicates in preview step of activities import (comments)

* Update changelog
pull/4507/head
Marcin Szymański 7 days ago
committed by GitHub
parent
commit
5754f01819
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 1
      CHANGELOG.md
  2. 1
      apps/api/src/app/import/import.service.ts

1
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`

1
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) &&

Loading…
Cancel
Save