Skip to content

Commit

Permalink
Merge pull request #151 from justRau/patch-2
Browse files Browse the repository at this point in the history
Fix `upated_at` typo in OrderFactory.php
  • Loading branch information
fulopattila122 authored Jul 3, 2023
2 parents bd1263b + f97f4ee commit 12565d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Foundation/Factories/OrderFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ protected function copyAdjustmentsHook(Order $order): void
if ($order instanceof Adjustable) {
foreach ($this->sourceAdjustments as $adjustment) {
$clone = $adjustment->newInstance(
Arr::except($adjustment->getAttributes(), ['id', 'adjustable_type', 'adjustable_id', 'created_at', 'upated_at'])
Arr::except($adjustment->getAttributes(), ['id', 'adjustable_type', 'adjustable_id', 'created_at', 'updated_at'])
);
$clone->data = $adjustment->data; // This gets flattened to string for some reason when fetching from "getAttributes"
$order->adjustments()->add($clone);
Expand Down

0 comments on commit 12565d8

Please sign in to comment.