starttime in prod

This commit is contained in:
salam committed 2026-02-25 17:54:54 +01:00
1 parent a5811c055c
commit cf1c1d30ee
1 file changed
+7 -5
@@ -68,11 +68,13 @@ class EventResource extends Resource
->where('has_markets', 1)
->where('sport_id', auth()->user()->sport_id);
if (config('env.app_env') == 'production') {
$query->where('starttime', '>=', Carbon::now()->subHour());
} else {
$query->where('starttime', '>=', Carbon::now());
}
$query->where('starttime', '>=', Carbon::now());
// if (config('env.app_env') == 'production') {
// $query->where('starttime', '>=', Carbon::now()->subHour());
// } else {
// $query->where('starttime', '>=', Carbon::now());
// }
if (auth()->user()->all_only_none > 0) {
switch (auth()->user()->all_only_none) {