Commit c408d263 authored by Romain Courteaud's avatar Romain Courteaud

IndexedDB: include_docs should return result in doc property

parent ee8a65fa
...@@ -176,7 +176,8 @@ ...@@ -176,7 +176,8 @@
function pushIncludedMetadata(cursor) { function pushIncludedMetadata(cursor) {
result_list.push({ result_list.push({
"id": cursor.key, "id": cursor.key,
"value": cursor.value.doc "value": {},
"doc": cursor.value.doc
}); });
} }
......
...@@ -384,10 +384,12 @@ ...@@ -384,10 +384,12 @@
"data": { "data": {
"rows": [{ "rows": [{
"id": "1", "id": "1",
"value": {"title": "title1"} "doc": {"title": "title1"},
"value": {}
}, { }, {
"id": "2", "id": "2",
"value": {"title": "title2"} "doc": {"title": "title2"},
"value": {}
}], }],
"total_rows": 2 "total_rows": 2
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment