fix: Add height parameter to OrderPacked event

Added height to the OrderPacked event constructor and dispatch call to match
the packing form which captures width, length, height, and weight.
This commit is contained in:
twotalesanimation
2026-01-02 21:25:05 +02:00
parent 5cd8c05a7c
commit 22dfb12948
2 changed files with 9 additions and 1 deletions
+8 -1
View File
@@ -92,7 +92,14 @@ class OpsController extends Controller
]);
// Emit event to trigger Slack notification and Trello update
\App\Events\OrderPacked::dispatch($order);
\App\Events\OrderPacked::dispatch(
$order,
(float) $validated['width'],
(float) $validated['length'],
(float) $validated['height'],
(float) $validated['weight'],
auth()->id()
);
return response()->json([
'success' => true,