Skip to content

Commit

Permalink
Merge pull request #93 from Giveth/fix-merge-by-field
Browse files Browse the repository at this point in the history
fix merge by field
  • Loading branch information
CarlosQ96 authored May 13, 2024
2 parents 9320423 + 742733c commit 3fdd74d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/services/notificationService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ const activityCreator = (payload: any, orttoEventName: NOTIFICATIONS_EVENT_NAMES
}
if (process.env.ENVIRONMENT === 'production') {
fields['str:cm:user-id'] = payload.userId?.toString()
fields['str:cm:userid'] = payload.userId?.toString()
}
let attributes;
switch (orttoEventName) {
Expand Down Expand Up @@ -168,7 +167,7 @@ const activityCreator = (payload: any, orttoEventName: NOTIFICATIONS_EVENT_NAMES
}
const merge_by = [];
if (process.env.ENVIRONMENT === 'production') {
merge_by.push("str:cm:userid")
merge_by.push("str:cm:user-id")
} else {
merge_by.push("str::email")
}
Expand Down

0 comments on commit 3fdd74d

Please sign in to comment.