푸시발송을 위해 @Transactional(readOnly = true) 추가
This commit is contained in:
@@ -2,6 +2,7 @@ package kr.co.vividnext.sodalive.fcm
|
|||||||
|
|
||||||
import org.springframework.context.ApplicationEventPublisher
|
import org.springframework.context.ApplicationEventPublisher
|
||||||
import org.springframework.security.access.prepost.PreAuthorize
|
import org.springframework.security.access.prepost.PreAuthorize
|
||||||
|
import org.springframework.transaction.annotation.Transactional
|
||||||
import org.springframework.web.bind.annotation.PostMapping
|
import org.springframework.web.bind.annotation.PostMapping
|
||||||
import org.springframework.web.bind.annotation.RequestBody
|
import org.springframework.web.bind.annotation.RequestBody
|
||||||
import org.springframework.web.bind.annotation.RequestMapping
|
import org.springframework.web.bind.annotation.RequestMapping
|
||||||
@@ -12,6 +13,7 @@ import org.springframework.web.bind.annotation.RestController
|
|||||||
@PreAuthorize("hasRole('ADMIN')")
|
@PreAuthorize("hasRole('ADMIN')")
|
||||||
class FcmController(private val applicationEventPublisher: ApplicationEventPublisher) {
|
class FcmController(private val applicationEventPublisher: ApplicationEventPublisher) {
|
||||||
@PostMapping
|
@PostMapping
|
||||||
|
@Transactional(readOnly = true)
|
||||||
fun send(
|
fun send(
|
||||||
@RequestBody request: PushRequest
|
@RequestBody request: PushRequest
|
||||||
) = run {
|
) = run {
|
||||||
|
|||||||
Reference in New Issue
Block a user