Skip to content

Commit 6956aa7

Browse files
committed
wip
1 parent 711a911 commit 6956aa7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Console/Commands/ClearCarts.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ public function handle(): void
3333
$cart->delete();
3434
});
3535

36+
Cart::proxy()->newQuery()->truncate();
37+
3638
$this->info('All carts have been deleted.');
3739
} else {
3840
Cart::proxy()->newQuery()->expired()->cursor()->each(static function (Cart $cart): void {

0 commit comments

Comments
 (0)