mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Trying to move frontpage back to io.js
This commit is contained in:
@@ -152,7 +152,20 @@ module.exports = function() {
|
||||
socket.on('frontpage_lists', function(msg)
|
||||
{
|
||||
console.log("First gotten", Functions.get_time());
|
||||
Frontpage.frontpage_lists(msg, socket);
|
||||
/*Frontpage.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}, 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());
|
||||
socket.compress(true).emit("playlists", {channels: docs, viewers: tot[0].total_users});
|
||||
console.log("sent frontpage ", Functions.get_time());
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
socket.on('now_playing', function(list, fn)
|
||||
|
||||
Reference in New Issue
Block a user