fix for uniqueVisitCount

master
rob 1 year ago
parent 4bdea8bd6d
commit 9add8e57b6

@ -61,7 +61,7 @@ class ResourceService extends SiteService {
);
if (response.upsertedCount > 0) {
modelUpdate.$inc['stats.uniqueViewCount'] = 1;
modelUpdate.$inc['stats.uniqueVisitCount'] = 1;
}
/*

@ -47,15 +47,16 @@ block content
+renderButtonIcon('fa-trash', 'delete')
.uk-width-auto
+renderButtonIcon('fa-eye', displayIntegerValue(post.stats.totalVisitCount))
+renderButtonIcon('fa-eye', displayIntegerValue(post.stats.uniqueVisitCount))
.uk-width-auto
+renderButtonIcon('fa-chevron-up', displayIntegerValue(post.stats.upvoteCount))
.uk-width-auto
+renderButtonIcon('fa-chevron-down', displayIntegerValue(post.stats.downvoteCount))
.uk-width-auto
+renderButtonIcon('fa-comment', displayIntegerValue(post.stats.commentCount))
.uk-margin
!= post.content
div!= post.content
if post.updated
.uk-margin

Loading…
Cancel
Save