Skip to content

Commit

Permalink
Fixes attachment saving typo
Browse files Browse the repository at this point in the history
  • Loading branch information
eMaringolo committed Mar 13, 2019
1 parent 11e537b commit 2aa97fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/CouchDB-Core/CouchAttachment.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ CouchAttachment class >> name: aString mimeType: mimeType in: aCouchDocument [
{ #category : #'instance creation' }
CouchAttachment class >> save: aCouchAttachment [

self request: [ :zn |
^self request: [ :zn |
zn url: aCouchAttachment url.
zn headerAt: 'If-Match' put: aCouchAttachment document revision.
zn contents: aCouchAttachment contents.
Expand Down
2 changes: 1 addition & 1 deletion src/CouchDB-Core/CouchDocument.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ CouchDocument >> saveAttachment: aCouchAttachment [
| response |
revision ifNil: [self refresh].
response := CouchAttachment save: aCouchAttachment.
revision := response at: '_rev'.
revision := response at: 'rev'.
^response
]

Expand Down

0 comments on commit 2aa97fc

Please sign in to comment.