Skip to content

Commit

Permalink
fix: 그룹 생성시 그룹 유저 미생성 이슈 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
leeheefull committed Dec 6, 2024
1 parent 38bff8b commit bdaa266
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package com.hero.alignlab.event.listener
import com.hero.alignlab.domain.group.application.GroupUserService
import com.hero.alignlab.event.model.CreateGroupEvent
import io.github.oshai.kotlinlogging.KotlinLogging
import jakarta.transaction.Transactional
import org.springframework.stereotype.Component
import org.springframework.transaction.event.TransactionalEventListener

Expand All @@ -12,6 +13,7 @@ class GroupEventListener(
) {
private val logger = KotlinLogging.logger { }

@Transactional(value = Transactional.TxType.REQUIRES_NEW)
@TransactionalEventListener
fun handle(event: CreateGroupEvent) {
groupUserService.saveSync(event.group.id, event.group.ownerUid)
Expand Down

0 comments on commit bdaa266

Please sign in to comment.