Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

decided that 409s on attachments have to be handled outside of addAtt…

…achment
  • Loading branch information...
commit d0ae4adc1763d77521111a6898961f4ef14db3b7 2 parents d800405 + 314e262
Martin Murphy authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/couchdb/database.js
View
6 lib/couchdb/database.js
@@ -290,10 +290,10 @@ Database = {
dataType: "json",
success: function(data, textStatus) {
status = textStatus;
- if (!data.ok) {
- return;
+ if (!data.ok) {
+ response = false;
+ return status;
}
- doc._rev = data.rev;
},
error: function(xhr) {
status = xhr.status;
Please sign in to comment.
Something went wrong with that request. Please try again.