오디션 수정

- 오디션 상태를 모집중으로 변경시 오디션 알림 받기가 되어 있는 유저에게 푸시 발송
This commit is contained in:
2025-01-08 17:38:11 +09:00
parent a26bb19b0f
commit b04f35c2da
5 changed files with 95 additions and 3 deletions

View File

@@ -23,7 +23,8 @@ class FcmService {
roomId: Long? = null,
messageId: Long? = null,
contentId: Long? = null,
creatorId: Long? = null
creatorId: Long? = null,
auditionId: Long? = null
) {
if (tokens.isNotEmpty()) {
logger.info("os: $container")
@@ -76,6 +77,10 @@ class FcmService {
multicastMessage.putData("channel_id", creatorId.toString())
}
if (auditionId != null) {
multicastMessage.putData("auditionId", auditionId.toString())
}
val response = FirebaseMessaging.getInstance().sendEachForMulticast(multicastMessage.build())
logger.info("보내기 성공: ${response.successCount}")
logger.info("보내기 실패: ${response.failureCount}")