Commit 6cd6e82c authored by Vincent Bechu's avatar Vincent Bechu

Remove include_docs from queries

parent 31808835
...@@ -303,13 +303,19 @@ ...@@ -303,13 +303,19 @@
.push(function () { .push(function () {
return storage._sub_storage.allDocs({ return storage._sub_storage.allDocs({
query: 'portal_type: "Conversion Info"', query: 'portal_type: "Conversion Info"',
include_docs: true select_list: [
"portal_type",
"convert_dict",
"format",
"attachment_id",
"doc_id"
]
}); });
}) })
.push(function (result) { .push(function (result) {
var i, promise_list = [], format, doc; var i, promise_list = [], format, doc;
for (i = 0; i < result.data.total_rows; i += 1) { for (i = 0; i < result.data.total_rows; i += 1) {
doc = result.data.rows[i].doc; doc = result.data.rows[i].value;
for (format in doc.convert_dict) { for (format in doc.convert_dict) {
if (doc.convert_dict.hasOwnProperty(format) && if (doc.convert_dict.hasOwnProperty(format) &&
doc.convert_dict[format] !== true) { doc.convert_dict[format] !== true) {
......
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