Skip to content

Commit 31b80d7

Browse files
RodrigoSMarquesphillwiggins
authored andcommitted
Bugfix create object (#158)
* Bugfix save and create object / LiveQuery Bugfix save and create object / LiveQuery * Bugfix create object Bugfix create object
1 parent 2ea134d commit 31b80d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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(forApiRQ: true);
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.
@@ -74,7 +74,7 @@ class ParseObject extends ParseBase implements ParseCloneable {
7474
final Map<String, dynamic> map = json.decode(result.body);
7575
objectId = map['objectId'].toString();
7676
}
77-
77+
7878
return handleResponse<ParseObject>(
7979
this, result, ParseApiRQ.create, _debug, className);
8080
} on Exception catch (e) {

0 commit comments

Comments
 (0)