Commit 3a82e65b authored by Tristan Cavelier's avatar Tristan Cavelier

gidstorage fix jslint errors

parent f6093f62
...@@ -313,7 +313,7 @@ ...@@ -313,7 +313,7 @@
"query": complex_query, "query": complex_query,
"wildcard_character": null "wildcard_character": null
}, function (response) { }, function (response) {
var doc, update_method = method; var update_method = method;
if (response.total_rows !== 0) { if (response.total_rows !== 0) {
if (method === 'post') { if (method === 'post') {
return that.error({ return that.error({
...@@ -323,10 +323,9 @@ ...@@ -323,10 +323,9 @@
"message": "Cannot post document", "message": "Cannot post document",
"reason": "Document already exist" "reason": "Document already exist"
}); });
} else {
doc = command.cloneDoc();
doc._id = response.rows[0].id;
} }
doc = command.cloneDoc();
doc._id = response.rows[0].id;
} else { } else {
doc = command.cloneDoc(); doc = command.cloneDoc();
delete doc._id; delete doc._id;
......
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