라이브 취소 푸시 발송 로직 추가

This commit is contained in:
2023-09-01 17:13:32 +09:00
parent d6dfa63bea
commit 896246d9ed
2 changed files with 6 additions and 7 deletions

View File

@@ -474,6 +474,7 @@ class LiveRoomService(
}
}
val pushTokenListMap = memberRepository.getPushTokenFromReservationList(request.roomId)
reservationRepository.cancelReservation(roomId = room.id!!)
applicationEventPublisher.publishEvent(
@@ -481,7 +482,7 @@ class LiveRoomService(
type = FcmEventType.CANCEL_LIVE,
title = room.member!!.nickname,
message = "라이브 취소 : ${room.title}",
roomId = request.roomId
recipientsMap = pushTokenListMap
)
)
}