From fafa8a206108e0c4634f25f70763f111ddfdcdc8 Mon Sep 17 00:00:00 2001 From: Steve <34465153+xxl4@users.noreply.github.com> Date: Thu, 31 Oct 2024 09:30:52 +0800 Subject: [PATCH] fix order order status --- src/Http/Controllers/Api/V1/OrdersController.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Http/Controllers/Api/V1/OrdersController.php b/src/Http/Controllers/Api/V1/OrdersController.php index de6f938..4594254 100644 --- a/src/Http/Controllers/Api/V1/OrdersController.php +++ b/src/Http/Controllers/Api/V1/OrdersController.php @@ -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);