add onlyKey opts to storage #getFirst
This commit is contained in:
parent
8765b02883
commit
e109550d9b
4 changed files with 15 additions and 7 deletions
|
|
@ -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);
|
||||
});
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue