Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

그룹 생성시 그룹 유저 미생성 이슈 수정 #29

Merged
merged 1 commit into from
Dec 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading