method.js | ●●●●● patch | view | raw | blame | history |
method.js
@@ -359,13 +359,15 @@ if(notice == null) { var userID = doc.userID; db.collection("users").find({"_id": userID}).limit(1).next(function(err, user){ global.configs[mac] = { address: address, location: location, notice: { tel: user.username, email: user.email, open_id: user.open_id if(user) { global.configs[mac] = { address: address, location: location, notice: { tel: user.username, email: user.email, open_id: user.open_id } } } });