TransactionalEventListener -> EventListener 변경

This commit is contained in:
Klaus 2023-08-09 10:13:28 +09:00
parent 11f1f781a0
commit b331e6e152
1 changed files with 4 additions and 2 deletions

View File

@ -2,8 +2,9 @@ package kr.co.vividnext.sodalive.fcm
import kr.co.vividnext.sodalive.member.MemberRepository
import org.slf4j.LoggerFactory
import org.springframework.context.event.EventListener
import org.springframework.scheduling.annotation.Async
import org.springframework.stereotype.Component
import org.springframework.transaction.event.TransactionalEventListener
enum class FcmEventType {
ALL, INDIVIDUAL, CREATE_LIVE, START_LIVE, UPLOAD_CONTENT, SEND_MESSAGE
@ -29,7 +30,8 @@ class FcmSendListener(
) {
private val logger = LoggerFactory.getLogger(FcmSendListener::class.java)
@TransactionalEventListener
@Async
@EventListener
fun send(fcmEvent: FcmEvent) {
when (fcmEvent.type) {
FcmEventType.ALL -> {