fix for post view count

master
Andrew Woodlee 10 months ago
parent eaa23cf827
commit 76e041015b

@ -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;
} }
/* /*

@ -56,7 +56,7 @@ 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

Loading…
Cancel
Save