Skip to content

Commit 701ec0a

Browse files
RodrigoSMarquesphillwiggins
authored andcommitted
BugFix ParseObject Save and LiveQuery (#155)
BugFix ParseObject Save and LiveQuery
1 parent 9ef1217 commit 701ec0a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/src/network/parse_live_query.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ class LiveQuery {
9898
if (_debug) {
9999
print('$_printConstLiveQuery: Done');
100100
}
101-
}, onError: (Error error, StackTrace stackTrace) {
101+
}, onError: (error) {
102102
if (_debug) {
103103
print(
104104
'$_printConstLiveQuery: Error: ${error.runtimeType.toString()}');

lib/src/objects/parse_object.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class ParseObject extends ParseBase implements ParseCloneable {
8989
} else {
9090
try {
9191
final Uri url = getSanitisedUri(_client, '$_path/$objectId');
92-
final String body = json.encode(toJson());
92+
final String body = json.encode(toJson(forApiRQ: true));
9393
final Response result = await _client.put(url, body: body);
9494
return handleResponse<ParseObject>(
9595
this, result, ParseApiRQ.save, _debug, className);

0 commit comments

Comments
 (0)