fix for uniqueVisitCount

master
rob 1 year ago
parent 4bdea8bd6d
commit 9add8e57b6

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

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

Loading…
Cancel
Save