Skip to content

Commit 2ea134d

Browse files
RodrigoSMarquesphillwiggins
authored andcommitted
Bugfix save and create object / LiveQuery (#157)
Bugfix save and create object / LiveQuery
1 parent 19a2255 commit 2ea134d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
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) {
101+
}, onError: (error) {
102102
if (_debug) {
103103
print(
104104
'$_printConstLiveQuery: Error: ${error.runtimeType.toString()}');

lib/src/objects/parse_object.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class ParseObject extends ParseBase implements ParseCloneable {
6565
Future<ParseResponse> create() async {
6666
try {
6767
final Uri url = getSanitisedUri(_client, '$_path');
68-
final String body = json.encode(toJson());
68+
final String body = json.encode(toJson(forApiRQ: true);
6969
final Response result = await _client.post(url, body: body);
7070

7171
//Set the objectId on the object after it is created.
@@ -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)