Shreya
3 days ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
14 additions and
13 deletions
-
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) && |
|
|
|