mirror of
				https://github.com/KevinMidboe/zoff.git
				synced 2025-10-29 18:00:23 +00:00 
			
		
		
		
	Fixed issue with accessed sorting
This commit is contained in:
		| @@ -27,6 +27,7 @@ function get_frontpage_lists(callback) { | |||||||
|         "id": 1, |         "id": 1, | ||||||
|         "title": 1, |         "title": 1, | ||||||
|         "viewers": 1, |         "viewers": 1, | ||||||
|  |         "accessed": 1, | ||||||
|         "pinned": { $ifNull: [ "$pinned", 0 ] }, |         "pinned": { $ifNull: [ "$pinned", 0 ] }, | ||||||
|         "description": { |         "description": { | ||||||
|             $ifNull: [ {$cond: { |             $ifNull: [ {$cond: { | ||||||
| @@ -63,7 +64,7 @@ function get_frontpage_lists(callback) { | |||||||
|         { |         { | ||||||
|             "$match": { |             "$match": { | ||||||
|                 frontpage: true, |                 frontpage: true, | ||||||
|                 count: {$gt: 0}, |                 count: {$gt: 3}, | ||||||
|             } |             } | ||||||
|         }, |         }, | ||||||
|         { |         { | ||||||
| @@ -73,8 +74,8 @@ function get_frontpage_lists(callback) { | |||||||
|             "$sort" : { |             "$sort" : { | ||||||
|                 "pinned": -1, |                 "pinned": -1, | ||||||
|                 "viewers": -1, |                 "viewers": -1, | ||||||
|                 "count": -1, |  | ||||||
|                 "accessed": -1, |                 "accessed": -1, | ||||||
|  |                 "count": -1, | ||||||
|                 "title": 1 |                 "title": 1 | ||||||
|             } |             } | ||||||
|         }, |         }, | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user