Skip to content

Commit

Permalink
fix merge by field
Browse files Browse the repository at this point in the history
  • Loading branch information
RamRamez committed May 13, 2024
1 parent 9320423 commit 742733c
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 742733c

Please sign in to comment.