Fixed frontpage-sorting issue

This commit is contained in:
Kasper Rynning-Tønnesen
2018-08-10 11:59:49 +02:00
parent 458226c7cf
commit 589c690871
3 changed files with 8 additions and 3 deletions

View File

@@ -27,7 +27,7 @@ function get_frontpage_lists(callback) {
"id": 1,
"title": 1,
"viewers": 1,
"pinned": 1,
"pinned": { $ifNull: [ "$pinned", 0 ] },
"description": {
$ifNull: [ {$cond: {
"if": {