Skip to content

Commit

Permalink
๐Ÿš€ :: v0.1.7-2
Browse files Browse the repository at this point in the history
๐Ÿš€ :: v0.1.7-2
  • Loading branch information
ImNM authored Jan 8, 2023
2 parents 6cfd110 + 81bc3c2 commit 194437e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ public class NotificationReactionCountInfoVo {

private final Long notificationId;
private final Long reactionId;
private final String reactionUrl;
private final Long reactionCount;
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@
public interface NotificationReactionRepository extends CrudRepository<NotificationReaction, Long> {

@Query(
"select new io.github.depromeet.knockknockbackend.domain.notification.domain.vo.NotificationReactionCountInfoVo(NR.notification.id, NR.reaction.id , count(NR.reaction.id) ) "
"select new io.github.depromeet.knockknockbackend.domain.notification.domain.vo.NotificationReactionCountInfoVo(NR.notification.id, NR.reaction.id , NR.reaction.imageUrl, count(NR.reaction.id) ) "
+ "from NotificationReaction NR "
+ "join NR.reaction R "
+ "on NR.reaction.id = R.id "
+ "where NR.notification = :notification "
+ "group by NR.reaction.id")
List<NotificationReactionCountInfoVo> findAllCountByNotification(Notification notification);
Expand Down

0 comments on commit 194437e

Please sign in to comment.