mirror of
https://github.com/reality/dbot.git
synced 2024-12-26 04:32:37 +01:00
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