Skip to content

Commit

Permalink
fix route
Browse files Browse the repository at this point in the history
  • Loading branch information
auguzsto committed Jul 26, 2023
1 parent 06b708b commit 60e22ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 1 addition & 5 deletions lib/src/shared/controllers/cart_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,7 @@ class CartController extends GetxController {
RxBool isLoading = false.obs;

Future<void> add(List<String> idItem) async {
await cartRepository.add(idItem).then(
(value) => cartRepository.client.post(
table: 'event',
),
);
await cartRepository.add(idItem);
}

Stream<List> getByLikeStream(UserModel userModel) async* {
Expand Down
4 changes: 3 additions & 1 deletion lib/src/shared/controllers/order_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ class OrderController {
}

Future<void> post(List<String> idItem) async {
await orderRepository.post(idItem);
await orderRepository
.post(idItem)
.then((value) => orderRepository.client.post(table: 'event'));
}

Future<List> getByUserId(UserModel? userModel) async {
Expand Down

0 comments on commit 60e22ae

Please sign in to comment.