Skip to content

Commit ed4d286

Browse files
committed
fix: notification emails showing same user name multiple times
ref issue tracked in Connect App repo appirio-tech/connect-app#3216
1 parent 9498198 commit ed4d286

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

connect/notificationServices/email.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function replacePlaceholders(term, data) {
2424
let ret = term;
2525
if (placeholders && placeholders.length) {
2626
_(placeholders).each(p => {
27-
const values = _.map(data, p.slice(1, -1));
27+
const values = _.uniq(_.map(data, p.slice(1, -1)));
2828
// TODO remove this code if possible.
2929
// This code appears to be not in use causing lint errors.
3030
// For now I'm commenting it, in case it contains some valuable logic.

0 commit comments

Comments
 (0)