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

Commit

Permalink
Wrap filter in query for deleteDocument
Browse files Browse the repository at this point in the history
  • Loading branch information
jenow committed Mar 9, 2017
1 parent 9a0dcd0 commit ff7795a
Showing 1 changed file with 1 addition and 1 deletion.
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 @@ -605,7 +605,7 @@ protected Collection deleteDocument(final String documentId, final JSONObject fi
data.put("_id", documentId);
action = "delete";
} else {
data.put("body", filter);
data.put("body", new JSONObject().put("query", filter));
action = "deleteByQuery";
}
this.kuzzle.query(makeQueryArgs("document", action), data, options, new OnQueryDoneListener() {
Expand Down

0 comments on commit ff7795a

Please sign in to comment.