mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Updating to use different collection for channelsettings
This commit is contained in:
@@ -383,7 +383,7 @@ module.exports = function() {
|
||||
return;
|
||||
}
|
||||
|
||||
db.collection(coll).find({views: {$exists: true}}, function(err, docs) {
|
||||
db.collection(coll + "_settings").find(function(err, docs) {
|
||||
if(docs.length > 0 && (docs[0].userpass == undefined || docs[0].userpass == "" || (obj.hasOwnProperty('pass') && docs[0].userpass == Functions.decrypt_string(socketid, obj.pass)))) {
|
||||
Functions.check_inlist(coll, guid, socket, offline);
|
||||
List.send_play(coll, socket);
|
||||
|
||||
Reference in New Issue
Block a user