Skip to content

Commit

Permalink
[feat] add logic for update total heart count
Browse files Browse the repository at this point in the history
  • Loading branch information
kgy1008 committed Jul 11, 2024
1 parent c35d844 commit fa0dc32
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,8 @@ public class Store extends BaseTimeEntity {
@Column(nullable = false)
private boolean isDeleted;

public void updateHearCount(boolean isDeleted) {
this.heartCount += isDeleted ? -1 : 1;
}

}

0 comments on commit fa0dc32

Please sign in to comment.