← All changes
|
app/Hooks/Scheduler/AutoSchedules/DailyScheduler.php
+2
-2
1.3.21
→
1.7.0
View file →
| @@ -1,9 +1,9 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | namespace FluentCart\App\Hooks\Scheduler\AutoSchedules; |
| 4 | 4 | |
| 5 | -use FluentCart\App\Hooks\Scheduler\JobRunner; | |
| 5 | + | |
| 6 | 6 | use FluentCart\App\Models\Cart; |
| 7 | 7 | |
| 8 | 8 | class DailyScheduler |
| 9 | 9 | { |
| @@ -32,9 +32,9 @@ | ||
| 32 | 32 | $days = apply_filters('fluent_cart/cleanup/old_carts_days', 30); |
| 33 | 33 | |
| 34 | 34 | $carts = Cart::query() |
| 35 | 35 | ->where('updated_at', '<=', date('Y-m-d H:i:s', strtotime('-' . $days . ' days'))) |
| 36 | - ->limt(1000) | |
| 36 | + ->limit(1000) | |
| 37 | 37 | ->get(); |
| 38 | 38 | |
| 39 | 39 | if ($carts->isEmpty()) { |
| 40 | 40 | return; |