Skip to content

Commit

Permalink
Fix incorrect variable name on order create (#255)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanmitchell authored Nov 14, 2024
1 parent 695be9f commit 8cd248c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Controllers/Webhooks/OrderCreateController.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public function __invoke(Request $request)
$data = json_decode($request->getContent());

// Fetch Single Product
$shopify = app(Rest::class);
$client = app(Rest::class);

foreach ($data->line_items as $item) {
$response = $client->get(path: 'products/'.$item->product_id);
Expand Down

0 comments on commit 8cd248c

Please sign in to comment.