알림설정
- 처음에 데이터 생성시 null이 들어오면 false로 처리
This commit is contained in:
@@ -15,10 +15,10 @@ class MemberNotificationService(private val repository: MemberNotificationReposi
|
||||
var notification = repository.getMemberNotification(memberId = member.id!!)
|
||||
if (notification == null) {
|
||||
notification = MemberNotification(
|
||||
uploadContent = uploadContent,
|
||||
live = live,
|
||||
message = message,
|
||||
audition = audition
|
||||
uploadContent = uploadContent ?: false,
|
||||
live = live ?: false,
|
||||
message = message ?: false,
|
||||
audition = audition ?: false
|
||||
)
|
||||
notification.member = member
|
||||
repository.save(notification)
|
||||
|
Reference in New Issue
Block a user