mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Logging more testing to see if data is set correctly
This commit is contained in:
@@ -294,6 +294,7 @@ function getSessionAdminUser(id, list, callback) {
|
|||||||
var userpass = "";
|
var userpass = "";
|
||||||
var adminpass = "";
|
var adminpass = "";
|
||||||
if(d.length > 0) {
|
if(d.length > 0) {
|
||||||
|
console.log(d);
|
||||||
if(d.hasOwnProperty("chromecast") && d.chromecast) {
|
if(d.hasOwnProperty("chromecast") && d.chromecast) {
|
||||||
getSessionAdminUser(d.id, list, callback);
|
getSessionAdminUser(d.id, list, callback);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -687,7 +687,9 @@ module.exports = function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
db.collection(coll + "_settings").find(function(err, docs) {
|
db.collection(coll + "_settings").find(function(err, docs) {
|
||||||
|
console.log("trying to get pos in song");
|
||||||
Functions.getSessionAdminUser(Functions.getSession(socket), coll, function(userpass, adminpass) {
|
Functions.getSessionAdminUser(Functions.getSession(socket), coll, function(userpass, adminpass) {
|
||||||
|
console.log("userpass, adminpass", userpass, adminpass);
|
||||||
if(userpass != "" || obj.pass == undefined) {
|
if(userpass != "" || obj.pass == undefined) {
|
||||||
obj.pass = userpass;
|
obj.pass = userpass;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user