test #19

Merged
klaus merged 2 commits from test into main 2023-08-28 08:54:09 +00:00
1 changed files with 3 additions and 0 deletions
Showing only changes of commit 7bb7e92137 - Show all commits

View File

@ -4,6 +4,8 @@ import kr.co.vividnext.sodalive.content.comment.AudioContentCommentRepository
import kr.co.vividnext.sodalive.member.MemberRepository
import org.springframework.scheduling.annotation.Async
import org.springframework.stereotype.Component
import org.springframework.transaction.annotation.Propagation
import org.springframework.transaction.annotation.Transactional
import org.springframework.transaction.event.TransactionalEventListener
enum class FcmEventType {
@ -32,6 +34,7 @@ class FcmSendListener(
) {
@Async
@TransactionalEventListener
@Transactional(propagation = Propagation.REQUIRES_NEW)
fun send(fcmEvent: FcmEvent) {
when (fcmEvent.type) {
FcmEventType.ALL -> {