Skip to content

Commit

Permalink
[BE] 누락된 SSE 발행 추가 (#928)
Browse files Browse the repository at this point in the history
  • Loading branch information
pilyang authored Feb 16, 2024
1 parent 939ff2b commit 8423dc3
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import org.springframework.transaction.event.TransactionalEventListener;
import team.teamby.teambyteam.common.domain.DomainEvent;
import team.teamby.teambyteam.feed.application.event.FeedEvent;
import team.teamby.teambyteam.notice.domain.event.NoticeCreationEvent;
import team.teamby.teambyteam.sse.domain.TeamPlaceEventId;
import team.teamby.teambyteam.sse.domain.TeamPlaceSseEvent;
import team.teamby.teambyteam.sse.domain.converter.TeamPlaceEventConvertMapper;
Expand All @@ -22,7 +23,10 @@ public class TeamPlaceSsePublisher {

@Async
@TransactionalEventListener(phase = TransactionPhase.AFTER_COMMIT,
classes = {FeedEvent.class}
classes = {
FeedEvent.class,
NoticeCreationEvent.class
}
)
public void publishEvent(final DomainEvent domainEvent) {
final TeamPlaceSseEvent teamPlaceSseEvent = eventConvertMapper.convert(domainEvent);
Expand Down

0 comments on commit 8423dc3

Please sign in to comment.