콘텐츠 댓글 알림 추가
This commit is contained in:
parent
cd833dc21d
commit
7bb7e92137
|
@ -4,6 +4,8 @@ import kr.co.vividnext.sodalive.content.comment.AudioContentCommentRepository
|
||||||
import kr.co.vividnext.sodalive.member.MemberRepository
|
import kr.co.vividnext.sodalive.member.MemberRepository
|
||||||
import org.springframework.scheduling.annotation.Async
|
import org.springframework.scheduling.annotation.Async
|
||||||
import org.springframework.stereotype.Component
|
import org.springframework.stereotype.Component
|
||||||
|
import org.springframework.transaction.annotation.Propagation
|
||||||
|
import org.springframework.transaction.annotation.Transactional
|
||||||
import org.springframework.transaction.event.TransactionalEventListener
|
import org.springframework.transaction.event.TransactionalEventListener
|
||||||
|
|
||||||
enum class FcmEventType {
|
enum class FcmEventType {
|
||||||
|
@ -32,6 +34,7 @@ class FcmSendListener(
|
||||||
) {
|
) {
|
||||||
@Async
|
@Async
|
||||||
@TransactionalEventListener
|
@TransactionalEventListener
|
||||||
|
@Transactional(propagation = Propagation.REQUIRES_NEW)
|
||||||
fun send(fcmEvent: FcmEvent) {
|
fun send(fcmEvent: FcmEvent) {
|
||||||
when (fcmEvent.type) {
|
when (fcmEvent.type) {
|
||||||
FcmEventType.ALL -> {
|
FcmEventType.ALL -> {
|
||||||
|
|
Loading…
Reference in New Issue