starttime in prod
This commit is contained in:
1 parent
a5811c055c
commit
cf1c1d30ee
1 file changed
+7
-5
@@ -68,11 +68,13 @@ class EventResource extends Resource
|
|||||||
->where('has_markets', 1)
|
->where('has_markets', 1)
|
||||||
->where('sport_id', auth()->user()->sport_id);
|
->where('sport_id', auth()->user()->sport_id);
|
||||||
|
|
||||||
if (config('env.app_env') == 'production') {
|
$query->where('starttime', '>=', Carbon::now());
|
||||||
$query->where('starttime', '>=', Carbon::now()->subHour());
|
|
||||||
} else {
|
// if (config('env.app_env') == 'production') {
|
||||||
$query->where('starttime', '>=', Carbon::now());
|
// $query->where('starttime', '>=', Carbon::now()->subHour());
|
||||||
}
|
// } else {
|
||||||
|
// $query->where('starttime', '>=', Carbon::now());
|
||||||
|
// }
|
||||||
|
|
||||||
if (auth()->user()->all_only_none > 0) {
|
if (auth()->user()->all_only_none > 0) {
|
||||||
switch (auth()->user()->all_only_none) {
|
switch (auth()->user()->all_only_none) {
|
||||||
|
|||||||
Reference in new issue
Block a user