알림설정

- 처음에 데이터 생성시 null이 들어오면 false로 처리
This commit is contained in:
Klaus 2025-02-03 16:15:27 +09:00
parent 09df1eb896
commit 3e4bfef14e
1 changed files with 4 additions and 4 deletions

View File

@ -15,10 +15,10 @@ class MemberNotificationService(private val repository: MemberNotificationReposi
var notification = repository.getMemberNotification(memberId = member.id!!) var notification = repository.getMemberNotification(memberId = member.id!!)
if (notification == null) { if (notification == null) {
notification = MemberNotification( notification = MemberNotification(
uploadContent = uploadContent, uploadContent = uploadContent ?: false,
live = live, live = live ?: false,
message = message, message = message ?: false,
audition = audition audition = audition ?: false
) )
notification.member = member notification.member = member
repository.save(notification) repository.save(notification)