diff options
Diffstat (limited to 'share/www/script/couch.js')
-rw-r--r-- | share/www/script/couch.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/share/www/script/couch.js b/share/www/script/couch.js index 947a5137..5fe43fb5 100644 --- a/share/www/script/couch.js +++ b/share/www/script/couch.js @@ -88,6 +88,7 @@ function CouchDB(name) { if (req.status != 201) throw result; for(var i in docs) { + docs[i]._id = result.new_revs[i].id; docs[i]._rev = result.new_revs[i].rev; } return result; |