푸시발송을 위해 @Transactional(readOnly = true) 추가

This commit is contained in:
Klaus 2023-08-30 16:59:07 +09:00
parent 6cf401539f
commit 378e8f13af
1 changed files with 2 additions and 0 deletions

View File

@ -2,6 +2,7 @@ package kr.co.vividnext.sodalive.fcm
import org.springframework.context.ApplicationEventPublisher
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.RequestBody
import org.springframework.web.bind.annotation.RequestMapping
@ -12,6 +13,7 @@ import org.springframework.web.bind.annotation.RestController
@PreAuthorize("hasRole('ADMIN')")
class FcmController(private val applicationEventPublisher: ApplicationEventPublisher) {
@PostMapping
@Transactional(readOnly = true)
fun send(
@RequestBody request: PushRequest
) = run {