mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Trying again to update frontpagelist..
This commit is contained in:
@@ -701,7 +701,7 @@ io.on('connection', function(socket){
|
|||||||
if(conf.adminpass == hash && conf.adminpass != "" && (conf.userpass == "" || (conf.userpass != "" && conf.userpass == hash_userpass))) {
|
if(conf.adminpass == hash && conf.adminpass != "" && (conf.userpass == "" || (conf.userpass != "" && conf.userpass == hash_userpass))) {
|
||||||
db.collection(coll).remove({views: {$exists: false}}, {multi: true}, function(err, succ) {
|
db.collection(coll).remove({views: {$exists: false}}, {multi: true}, function(err, succ) {
|
||||||
send_list(coll, false, true, true, true);
|
send_list(coll, false, true, true, true);
|
||||||
db.collection("frontpage_lists").update({_id: coll}, {$set: {count: 0, accessed: get_time()}}, {upsert: true});
|
db.collection("frontpage_lists").update({_id: coll}, {$set: {count: 0, accessed: get_time()}}, {upsert: true}, function(err, docs) {});
|
||||||
socket.emit("toast", "deleted_songs");
|
socket.emit("toast", "deleted_songs");
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user