Skip to content

Commit

Permalink
Merge pull request #10 from ssbc/fix-meta-true
Browse files Browse the repository at this point in the history
Fix ooo.get({ id, meta: true })
  • Loading branch information
christianbundy committed Dec 13, 2019
2 parents 43f70bc + c9ed298 commit 010dcb2
Show file tree
Hide file tree
Showing 5 changed files with 1,631 additions and 1,659 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
language: node_js
node_js:
- 0.6
- 0.8
- lts/*
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ exports.init = function (sbot, config) {
if(!err) cb(null, value)
else get(id, function (_err, data) {
if(_err) fn(id, cb) //just in-case, try the log again
else cb(null, data.value)
else cb(null, id.meta === true ? data : data.value)
})
})
})
Expand Down
Loading

0 comments on commit 010dcb2

Please sign in to comment.