diff --git a/app/Http/Controllers/Api/SaleController.php b/app/Http/Controllers/Api/SaleController.php index f9c8d22..01894be 100644 --- a/app/Http/Controllers/Api/SaleController.php +++ b/app/Http/Controllers/Api/SaleController.php @@ -65,7 +65,7 @@ public function store(Request $request) ]); } - $order = DocumentNumber::query()->with('sales')->where('id', $document_number->id)->get(); + $order = DocumentNumber::query()->with('sales')->where('id', $document_number->id)->first(); broadcast(new CheckoutSuccessEvent($order, 'New checkout success.')); return response()->noContent(201);