Skip to content

Commit

Permalink
fix: 계정 가입 안한 디바이스의 유저(즉 null)에도 학사일정 알림을 생성하는 이슈
Browse files Browse the repository at this point in the history
  • Loading branch information
umi0410 committed Jan 13, 2022
1 parent 15effda commit d34e30a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public List<Notification> createNotificationForHaksaScheduleStarts(HaksaSchedule
// Hash맵을 이용해서 한 번만 보내야겠다...
Map<String, Notification> notifications = new HashMap<>();
for (PushDevice device : devices) {
if (!usersIgnored.contains(device.getUser())) {
if (device.getUser() != null && !usersIgnored.contains(device.getUser())) {
if (!notifications.containsKey(device.getUser())) {
notifications.put(device.getUser(), notificationRepository.save(Notification.builder()
.recipient(device.getUser())
Expand Down

0 comments on commit d34e30a

Please sign in to comment.