Skip to content

Commit

Permalink
Issue #3015 User notifications: minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mzueva committed Mar 14, 2023
1 parent 6dfa0b4 commit 0e7e74c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import org.springframework.stereotype.Service;

import javax.transaction.Transactional;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

Expand Down Expand Up @@ -58,6 +59,8 @@ private static UserNotification buildNotification(final Long userId,
userNotification.setUserId(userId);
userNotification.setSubject(messageText.getSubject());
userNotification.setText(messageText.getBody());
userNotification.setCreatedDate(LocalDateTime.now());
userNotification.setIsRead(false);
return userNotification;
}
}

0 comments on commit 0e7e74c

Please sign in to comment.