A small correction to avoid a error generated in certain cases
This commit is contained in:
parent
2efae97d4a
commit
335a0b065f
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
@ -27,7 +27,7 @@ exports.registerRoute = function (hook_name, args, callback) {
|
|||
var timeDiffGood = false;
|
||||
var email = "your email";
|
||||
|
||||
if(userIds && userIds['pending']){
|
||||
if(userIds && userIds['pending'] && userIds['pending'].length > 0){
|
||||
async.forEach(Object.keys(userIds['pending']), function(user){
|
||||
var userInfo = userIds['pending'][user];
|
||||
|
||||
|
|
Loading…
Reference in a new issue