Skip to content

Commit

Permalink
fix: Delete categories (#349)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomBursch authored Jan 2, 2024
1 parent 82c081c commit 7a9f15d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/services/api/category.dart
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,7 @@ extension CategoryApi on ApiService {
}

Future<bool> deleteCategory(Category category) async {
final res = await delete(
baseRoute,
body: jsonEncode({'name': category.name}),
);
final res = await delete('$baseRoute/${category.id}');

return res.statusCode == 200;
}
Expand Down

0 comments on commit 7a9f15d

Please sign in to comment.