Shreya 3 days ago
committed by GitHub
parent
commit
47bd61b9ea
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 3
      apps/api/src/app/import/import.service.ts

3
apps/api/src/app/import/import.service.ts

@ -1076,8 +1076,9 @@ export class ImportService {
const isDuplicate = existingActivities.some((activity) => { const isDuplicate = existingActivities.some((activity) => {
return ( return (
(!accountId || activity.accountId === accountId) &&
(activity.comment || null) === (comment || null) && (activity.comment || null) === (comment || null) &&
(activity.currency === currency || ((activity.currency || null) === (currency || null) ||
activity.assetProfile.currency === currency) && activity.assetProfile.currency === currency) &&
activity.assetProfile.dataSource === dataSource && activity.assetProfile.dataSource === dataSource &&
isSameSecond(activity.date, date) && isSameSecond(activity.date, date) &&

Loading…
Cancel
Save