Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

Commit

Permalink
Merge pull request #175 from kuzzleio/fix-document-update
Browse files Browse the repository at this point in the history
[HOTFIX] Fix document:update
  • Loading branch information
jenow committed Mar 3, 2020
2 parents 3f7a7cb + 2e58971 commit d22c60f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
apply plugin: 'jacoco-android'
apply plugin: 'com.jfrog.bintray'
apply plugin: 'com.github.dcendents.android-maven'
version = "3.0.9"
version = "3.0.10"

buildscript {
repositories {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/kuzzle/sdk/core/Collection.java
Original file line number Diff line number Diff line change
Expand Up @@ -1848,7 +1848,7 @@ public void onSuccess(JSONObject response) {
if (listener != null) {
try {
JSONObject result = response.getJSONObject("result");
Document document = new Document(Collection.this, result.getString("_id"), result.getJSONObject("_source"));
Document document = new Document(Collection.this, result.getString("_id"));
document.setVersion(result.getLong("_version"));
document.refresh(listener);
} catch (JSONException e) {
Expand Down

0 comments on commit d22c60f

Please sign in to comment.