Skip to content

Commit

Permalink
Use discardExpiration method
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdnbrk committed Sep 22, 2020
1 parent 5ac8d84 commit ace89ef
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Observers/OrderObserver.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ public function deleted(Order $order): void
ReleaseOrderLine::dispatch($line);
});

$order->update([
'expires_at' => 0,
$order->discardExpiration()->update([
'status' => Deleted::class,
]);
}
Expand Down

0 comments on commit ace89ef

Please sign in to comment.