Skip to content

Commit

Permalink
feat: view count
Browse files Browse the repository at this point in the history
  • Loading branch information
doxxx93 committed Feb 21, 2024
1 parent 19bb34a commit 4bdc926
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public void decrementLikeCount(final Long pid) {
}

public void incrementViewCount(final Long aLong) {
changeMetricCount(aLong, "viewCount", DELTA);
changeMetricCount(aLong, VIEW_COUNT, DELTA);
}

private void changeMetricCount(final Long pid, final String metric, final int delta) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public static PaintResponse of(Paint paint, PaintMetrics metrics) {
false,
false,
false,
0,
metrics.viewCount(),
new Entities(paint.getHashtagRecords(), paint.getMentionRecords()),
new Includes(paint.getMediaRecords(), paint.getMentionRecords(), paint.getLinkRecord())
);
Expand Down

0 comments on commit 4bdc926

Please sign in to comment.