mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Count fix deleted songs
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))) {
|
||||
db.collection(coll).remove({views: {$exists: false}}, {multi: true}, function(err, succ) {
|
||||
send_list(coll, false, true, true, true);
|
||||
db.collection("frontpage_lists").update({_id: coll}, {$set: {count: 0}, $set:{accessed: get_time()}}, {upsert: true});
|
||||
db.collection("frontpage_lists").update({_id: coll}, {$set: {count: 0, accessed: get_time()}}, {upsert: true});
|
||||
socket.emit("toast", "deleted_songs");
|
||||
});
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user