timezon ->subHour() in prod
This commit is contained in:
1 parent
46dbda7883
commit
20765d4b2b
1 file changed
+7
-2
@@ -62,8 +62,13 @@ class EventResource extends Resource
|
|||||||
->with('event_bookmaker')
|
->with('event_bookmaker')
|
||||||
->with('event_user_star')
|
->with('event_user_star')
|
||||||
->with('event_user_note')
|
->with('event_user_note')
|
||||||
->where('sport_id', auth()->user()->sport_id)
|
->where('sport_id', auth()->user()->sport_id);
|
||||||
->where('starttime', '>=', now());
|
|
||||||
|
if (config('env.app_env') == 'production') {
|
||||||
|
$query->where('starttime', '>=', now()->subHour());
|
||||||
|
} else {
|
||||||
|
$query->where('starttime', '>=', 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