Skip to content

Commit 45f4f53

Browse files
committed
Fixed delete
1 parent 0513df2 commit 45f4f53

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/src/objects/parse_object.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -263,11 +263,11 @@ class ParseObject extends ParseBase implements ParseCloneable {
263263
}
264264

265265
/// Deletes the current object locally and online
266-
Future<ParseResponse> delete({String objectId, String path}) async {
266+
Future<ParseResponse> delete({String id, String path}) async {
267267
try {
268268
path ??= _path;
269-
objectId ??= objectId;
270-
final Uri url = getSanitisedUri(_client, '$_path/$objectId');
269+
id ??= objectId;
270+
final Uri url = getSanitisedUri(_client, '$_path/$id');
271271
final Response result = await _client.delete(url);
272272
return handleResponse<ParseObject>(
273273
this, result, ParseApiRQ.delete, _debug, className);

0 commit comments

Comments
 (0)