fix(消息管理): 修复站内信通知人重复问题

--bug=1039613 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001039613
This commit is contained in:
guoyuqi 2024-04-18 11:06:01 +08:00 committed by Craftsman
parent 2c97f17dc6
commit c6e5ffc142
1 changed files with 1 additions and 1 deletions

View File

@ -172,7 +172,7 @@ public abstract class AbstractNoticeSender implements NoticeSender {
LogUtils.info("userIds: ", JSON.toJSONString(userIds));
List<User> users = getUsers(userIds, messageDetail.getProjectId());
List<String> realUserIds = users.stream().map(User::getId).distinct().toList();
return toUsers.stream().filter(t -> realUserIds.contains(t.getUserId())).toList();
return toUsers.stream().filter(t -> realUserIds.contains(t.getUserId())).distinct().toList();
}
private Receiver handleCreateUser(MessageDetail messageDetail, NoticeModel noticeModel) {