diff --git a/src/groups.js b/src/groups.js index d3ca167d6d..4f007f1eec 100644 --- a/src/groups.js +++ b/src/groups.js @@ -391,7 +391,7 @@ var async = require('async'), db.rename('group:' + oldName, 'group:' + newName, next); }, function(next) { - Groups.exists('group:' + oldName + ':members', function(err, exists) { + db.exists('group:' + oldName + ':members', function(err, exists) { if (err) { return next(err); }