From 77f2aec4610329a7cdad1d89f517f35f61b3d246 Mon Sep 17 00:00:00 2001 From: Chris Anderson Date: Mon, 19 May 2014 16:31:18 -0700 Subject: [PATCH] do a get before the put --- js/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/index.js b/js/index.js index 743fa87..cccb79e 100644 --- a/js/index.js +++ b/js/index.js @@ -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) {