푸시발송을 위해 @Transactional(readOnly = true) 추가
This commit is contained in:
parent
6cf401539f
commit
378e8f13af
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue