From 378e8f13affbdda862c8e5a1518bacf53c64d891 Mon Sep 17 00:00:00 2001 From: Klaus Date: Wed, 30 Aug 2023 16:59:07 +0900 Subject: [PATCH] =?UTF-8?q?=ED=91=B8=EC=8B=9C=EB=B0=9C=EC=86=A1=EC=9D=84?= =?UTF-8?q?=20=EC=9C=84=ED=95=B4=20@Transactional(readOnly=20=3D=20true)?= =?UTF-8?q?=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/kotlin/kr/co/vividnext/sodalive/fcm/FcmController.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/fcm/FcmController.kt b/src/main/kotlin/kr/co/vividnext/sodalive/fcm/FcmController.kt index a35b138..eaaccea 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/fcm/FcmController.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/fcm/FcmController.kt @@ -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 {