public function scopeReadyForStatsCheck(Builder $query): Builder 	{ 		return $query->where('canceled', false) 			->whereNotNull('external_id') 			->whereBetween('scheduled_at', [formatTimestamp(now()->subDays(setting('onesignal_stats_check_days'))), formatTimestamp()]) 			->where(function (Builder $query): void { 				$query->whereNull('completed_at')->orWhereColumn('converted', '<', 'successful'); 			}); 	}