Skip to content

Commit 6804755

Browse files
committed
Using the encoder on state is too broad.
Related to issue: #14 Currently only the conditions and class name are encoded: https://github.com/ParsePlatform/ParseLiveQuery-iOS-OSX/blob/master/Sources/ParseLiveQuery/Internal/QueryEncoder.swift
1 parent 948563c commit 6804755

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ParseLiveQuery/src/main/java/com/parse/SubscribeClientOperation.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@
2222
jsonObject.put("requestId", requestId);
2323
jsonObject.put("sessionToken", sessionToken);
2424

25-
JSONObject queryJsonObject = state.toJSON(PointerEncoder.get());
25+
JSONObject queryJsonObject = new JSONObject();
26+
queryJsonObject.put("className", state.className());
27+
28+
PointerEncoder pointerEncoder = PointerEncoder.get();
29+
queryJsonObject.put("where", pointerEncoder.encode(state.constraints()));
2630

2731
jsonObject.put("query", queryJsonObject);
2832

0 commit comments

Comments
 (0)