Skip to content

Commit

Permalink
modified: app/Http/Controllers/Api/SaleController.php
Browse files Browse the repository at this point in the history
  • Loading branch information
glenmoreilagan committed Sep 10, 2024
1 parent cfa84b4 commit 1c8bbb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/Api/SaleController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1c8bbb9

Please sign in to comment.