Skip to content

Commit

Permalink
fix : 피드 조회 (#259)
Browse files Browse the repository at this point in the history
* feat(#171): 목표 생성시 기본 댓글 개수 추가

* chore(#171): ktlint
  • Loading branch information
ManHyuk authored Apr 24, 2024
1 parent 88f1d39 commit 12e2397
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package io.raemian.api.goal.service

import io.raemian.api.comment.service.CommentService
import io.raemian.api.emoji.service.EmojiService
import io.raemian.api.event.model.CreatedCommentEvent
import io.raemian.api.event.model.CreatedGoalEvent
import io.raemian.api.event.model.DeletedGoalEvent
import io.raemian.api.goal.controller.request.CreateGoalRequest
Expand Down Expand Up @@ -59,6 +60,11 @@ class GoalService(
CreatedGoalEvent(lifeMap.id!!),
)

// goal 생성시 comment count 이벤트 발행
applicationEventPublisher.publishEvent(
CreatedCommentEvent(goal.id!!),
)

return CreateGoalResult(goal)
}

Expand Down

0 comments on commit 12e2397

Please sign in to comment.