Skip to content
This repository has been archived by the owner on Mar 9, 2022. It is now read-only.

Commit

Permalink
do a get before the put
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Anderson committed May 19, 2014
1 parent fa215d2 commit 77f2aec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -596,12 +596,12 @@ function setupConfig(done) {
})

function setupDb(db, cb) {
// db.del(function(){
db.get(function(err, res, body){
console.log(JSON.stringify(["before create db put", err, res, body]))
db.put(function(err, res, body){
console.log(JSON.stringify(["did create db put", err, res, body]))
db.get(cb)
})
// })
})
}

function setupViews(db, cb) {
Expand Down

0 comments on commit 77f2aec

Please sign in to comment.