add onlyKey opts to storage #getFirst

This commit is contained in:
Matias Alejo Garcia 2014-10-20 10:00:10 -03:00
commit e109550d9b
4 changed files with 15 additions and 7 deletions

View file

@ -45,7 +45,7 @@ Profile.create = function(email, password, storage, cb) {
Profile.any = function(storage, cb) {
storage.getFirst(Profile.key(''), function(err, v, k) {
storage.getFirst(Profile.key(''), { onlyKey: true}, function(err, v, k) {
return cb(k ? true : false);
});
};