forked from GitHub/dbot
null chekc in profile
This commit is contained in:
parent
1920b4fd03
commit
13a2c465ae
@ -67,7 +67,7 @@ var api = function(dbot) {
|
||||
'getAllProfilesWith': function(item, callback) {
|
||||
var profiles = [];
|
||||
this.db.scan('profiles', function(profile) {
|
||||
if(_.has(profile.profile, item)) {
|
||||
if(_.has(profile.profile, item) && profile.profile[item] != null) {
|
||||
profiles.push(profile);
|
||||
}
|
||||
}, function(err) {
|
||||
|
Loading…
Reference in New Issue
Block a user