Trying to not use greater than

This commit is contained in:
Kasper Rynning-Tønnesen
2017-09-17 21:14:08 +02:00
parent 733d839b85
commit 7d2cecd6be
4 changed files with 12 additions and 8 deletions

View File

@@ -1,10 +1,10 @@
var frontpage_lists = function(msg, socket) {
function frontpage_lists(msg, socket) {
if(!msg.hasOwnProperty('version') || msg.version != VERSION || msg.version == undefined) {
socket.emit("update_required");
}
console.log("gotten second ", Functions.get_time());
db.collection("frontpage_lists").find({frontpage:true, count: {$ne: 0}}, function(err, docs){
db.collection("frontpage_lists").find({frontpage:true}, function(err, docs){
console.log("gotten third ", Functions.get_time());
db.collection("connected_users").find({"_id": "total_users"}, function(err, tot){
console.log("sending frontpage ", Functions.get_time());