Skip to content

Commit 91ec3f5

Browse files
author
mpv1989
committed
Fixed collection.update(documentHandle, newValue, opts)
missing return value
1 parent 5e9ba20 commit 91ec3f5

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
77

88
## [Unreleased]
99

10+
### Fixed
11+
12+
* Fixed `collection.update(documentHandle, newValue, opts)` missing return value
13+
1014
## [6.2.2] - 2018-03-21
1115

1216
### Fixed

src/collection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ export abstract class BaseCollection implements ArangoCollection {
222222
({ rev, ...opts } = opts);
223223
headers["if-match"] = rev;
224224
}
225-
this._connection.request(
225+
return this._connection.request(
226226
{
227227
method: "PATCH",
228228
path: `/_api/${this._documentPath(documentHandle)}`,

0 commit comments

Comments
 (0)