Fix Event & EventType resource issues and apply formatting
- Fix EventType deletion error handling (constraint violations) - Fix Event update error (package_id column missing) - Fix Event Type dropdown options (JSON display issue) - Fix EventPackagesRelationManager query error - Add missing translations for deletion errors - Apply Pint formatting
This commit is contained in:
@@ -75,11 +75,11 @@ class AbandonedCheckout extends Model
|
||||
public function scopeReadyForReminder($query, string $stage, int $hours)
|
||||
{
|
||||
return $query->where('reminder_stage', '!=', $stage)
|
||||
->where('reminder_stage', '!=', 'converted')
|
||||
->where('abandoned_at', '<=', now()->subHours($hours))
|
||||
->where(function ($q) {
|
||||
$q->whereNull('reminded_at')
|
||||
->orWhere('reminded_at', '<=', now()->subHours(24));
|
||||
});
|
||||
->where('reminder_stage', '!=', 'converted')
|
||||
->where('abandoned_at', '<=', now()->subHours($hours))
|
||||
->where(function ($q) {
|
||||
$q->whereNull('reminded_at')
|
||||
->orWhere('reminded_at', '<=', now()->subHours(24));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user