Skip to content

Commit

Permalink
fix order order status
Browse files Browse the repository at this point in the history
  • Loading branch information
xxl4 committed Oct 31, 2024
1 parent 81fe720 commit fafa8a2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Http/Controllers/Api/V1/OrdersController.php
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,7 @@ public function create(Request $request) {

// set the order status to processing

$order->update([
'status' => 'processing',
]);
$this->orderRepository->update(['status' => 'processing'], $order->id);

return response()->json($data);

Expand Down

0 comments on commit fafa8a2

Please sign in to comment.