EventListener -> TransactionalEventListener 변경
This commit is contained in:
parent
eb09251955
commit
11f1f781a0
|
@ -2,8 +2,8 @@ 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.stereotype.Component
|
||||
import org.springframework.transaction.event.TransactionalEventListener
|
||||
|
||||
enum class FcmEventType {
|
||||
ALL, INDIVIDUAL, CREATE_LIVE, START_LIVE, UPLOAD_CONTENT, SEND_MESSAGE
|
||||
|
@ -29,7 +29,7 @@ class FcmSendListener(
|
|||
) {
|
||||
private val logger = LoggerFactory.getLogger(FcmSendListener::class.java)
|
||||
|
||||
@EventListener
|
||||
@TransactionalEventListener
|
||||
fun send(fcmEvent: FcmEvent) {
|
||||
when (fcmEvent.type) {
|
||||
FcmEventType.ALL -> {
|
||||
|
|
Loading…
Reference in New Issue