From 1bb3daca935587a2e31a156dd5613563b5eefd95 Mon Sep 17 00:00:00 2001 From: salam Date: Sat, 17 Jan 2026 15:55:50 +0100 Subject: [PATCH] add touch updated_at --- app/Console/Commands/Grapper/TxOdds/Odds/_2Way.php | 1 + app/Console/Commands/Grapper/TxOdds/Odds/_2WayS1.php | 1 + app/Console/Commands/Grapper/TxOdds/Odds/_3Way.php | 1 + app/Console/Commands/Grapper/TxOdds/Odds/_3WayHt.php | 1 + app/Console/Commands/Grapper/TxOdds/Odds/_Dc.php | 1 + app/Console/Commands/Grapper/TxOdds/Odds/_Dnb.php | 1 + app/Console/Commands/Grapper/TxOdds/Odds/_Ggng.php | 1 + app/Console/Commands/Grapper/TxOdds/Odds/_Points.php | 1 + app/Console/Commands/Grapper/TxOdds/Odds/_PointsHt.php | 1 + app/Console/Commands/Grapper/TxOdds/Odds/_PointsQ1.php | 1 + app/Console/Commands/Grapper/TxOdds/Odds/_Totals.php | 1 + app/Console/Commands/Grapper/TxOdds/Odds/_TotalsHt.php | 1 + app/Console/Commands/Grapper/TxOdds/Odds/_TotalsQ1.php | 1 + app/Console/Commands/Grapper/TxOdds/Odds/_Tq.php | 1 + resources/views/livewire/top-menu-items.blade.php | 7 +++---- 15 files changed, 17 insertions(+), 4 deletions(-) diff --git a/app/Console/Commands/Grapper/TxOdds/Odds/_2Way.php b/app/Console/Commands/Grapper/TxOdds/Odds/_2Way.php index e061f950..d766ab51 100644 --- a/app/Console/Commands/Grapper/TxOdds/Odds/_2Way.php +++ b/app/Console/Commands/Grapper/TxOdds/Odds/_2Way.php @@ -16,6 +16,7 @@ class _2Way $odds['starttime'] = (string) $value['starttime']; } $odds['margin'] = (float) Margin::calculate([$odds['h2w'], $odds['a2w']], 1); + $odds['updated_at'] = DB::raw('NOW()'); DB::table('odds_2ways')->updateOrInsert([ 'event_id' => Nuh::$id, diff --git a/app/Console/Commands/Grapper/TxOdds/Odds/_2WayS1.php b/app/Console/Commands/Grapper/TxOdds/Odds/_2WayS1.php index 3f2f2d43..93a3b4c6 100644 --- a/app/Console/Commands/Grapper/TxOdds/Odds/_2WayS1.php +++ b/app/Console/Commands/Grapper/TxOdds/Odds/_2WayS1.php @@ -15,6 +15,7 @@ class _2WayS1 $odds['a2w'] = (float) $value->o3; } $odds['margin'] = (float) Margin::calculate([$odds['h2w'], $odds['a2w']], 1); + $odds['updated_at'] = DB::raw('NOW()'); DB::table('odds_2ways_s1')->updateOrInsert([ 'event_id' => Nuh::$id, diff --git a/app/Console/Commands/Grapper/TxOdds/Odds/_3Way.php b/app/Console/Commands/Grapper/TxOdds/Odds/_3Way.php index c60b83c6..419dca10 100644 --- a/app/Console/Commands/Grapper/TxOdds/Odds/_3Way.php +++ b/app/Console/Commands/Grapper/TxOdds/Odds/_3Way.php @@ -17,6 +17,7 @@ class _3Way $odds['starttime'] = (string) $value['starttime']; } $odds['margin'] = (float) Margin::calculate([$odds['h3w'], $odds['d3w'], $odds['a3w']], 1); + $odds['updated_at'] = DB::raw('NOW()'); DB::table('odds_3ways')->updateOrInsert([ 'event_id' => Nuh::$id, diff --git a/app/Console/Commands/Grapper/TxOdds/Odds/_3WayHt.php b/app/Console/Commands/Grapper/TxOdds/Odds/_3WayHt.php index 64b649d1..6830ed34 100644 --- a/app/Console/Commands/Grapper/TxOdds/Odds/_3WayHt.php +++ b/app/Console/Commands/Grapper/TxOdds/Odds/_3WayHt.php @@ -16,6 +16,7 @@ class _3WayHt $odds['a3w'] = (float) $value->o3; } $odds['margin'] = (float) Margin::calculate([$odds['h3w'], $odds['d3w'], $odds['a3w']], 1); + $odds['updated_at'] = DB::raw('NOW()'); DB::table('odds_3ways_ht')->updateOrInsert([ 'event_id' => Nuh::$id, diff --git a/app/Console/Commands/Grapper/TxOdds/Odds/_Dc.php b/app/Console/Commands/Grapper/TxOdds/Odds/_Dc.php index e3fd6fb9..cd17f66a 100644 --- a/app/Console/Commands/Grapper/TxOdds/Odds/_Dc.php +++ b/app/Console/Commands/Grapper/TxOdds/Odds/_Dc.php @@ -16,6 +16,7 @@ class _Dc $odds['dcx2'] = (float) $value->o3; } $odds['margin'] = (float) Margin::calculate([$odds['dc1x'], $odds['dc12'], $odds['dcx2']], 1); + $odds['updated_at'] = DB::raw('NOW()'); DB::table('odds_dc')->updateOrInsert([ 'event_id' => Nuh::$id, diff --git a/app/Console/Commands/Grapper/TxOdds/Odds/_Dnb.php b/app/Console/Commands/Grapper/TxOdds/Odds/_Dnb.php index 7f946696..8e01b0c9 100644 --- a/app/Console/Commands/Grapper/TxOdds/Odds/_Dnb.php +++ b/app/Console/Commands/Grapper/TxOdds/Odds/_Dnb.php @@ -15,6 +15,7 @@ class _Dnb $odds['dnb2'] = (float) $value->o3; } $odds['margin'] = (float) Margin::calculate([$odds['dnb1'], $odds['dnb2']], 1); + $odds['updated_at'] = DB::raw('NOW()'); DB::table('odds_dnb')->updateOrInsert([ 'event_id' => Nuh::$id, diff --git a/app/Console/Commands/Grapper/TxOdds/Odds/_Ggng.php b/app/Console/Commands/Grapper/TxOdds/Odds/_Ggng.php index 89763439..903c1cef 100644 --- a/app/Console/Commands/Grapper/TxOdds/Odds/_Ggng.php +++ b/app/Console/Commands/Grapper/TxOdds/Odds/_Ggng.php @@ -15,6 +15,7 @@ class _Ggng $odds['ng'] = (float) $value->o3; } $odds['margin'] = (float) Margin::calculate([$odds['gg'], $odds['ng']], 1); + $odds['updated_at'] = DB::raw('NOW()'); DB::table('odds_ggng')->updateOrInsert([ 'event_id' => Nuh::$id, diff --git a/app/Console/Commands/Grapper/TxOdds/Odds/_Points.php b/app/Console/Commands/Grapper/TxOdds/Odds/_Points.php index aa473d92..7df4cbfb 100644 --- a/app/Console/Commands/Grapper/TxOdds/Odds/_Points.php +++ b/app/Console/Commands/Grapper/TxOdds/Odds/_Points.php @@ -23,6 +23,7 @@ class _Points $odds['margin'] = (float) Margin::calculate([$odds['home'], $odds['away']], 1); $odds['difference'] = abs(1 / $odds['home'] - 1 / $odds['away']); + $odds['updated_at'] = DB::raw('NOW()'); ActiveSpread::collect($odds, 'odds_points'); diff --git a/app/Console/Commands/Grapper/TxOdds/Odds/_PointsHt.php b/app/Console/Commands/Grapper/TxOdds/Odds/_PointsHt.php index 5c58eb0e..91d8823d 100644 --- a/app/Console/Commands/Grapper/TxOdds/Odds/_PointsHt.php +++ b/app/Console/Commands/Grapper/TxOdds/Odds/_PointsHt.php @@ -23,6 +23,7 @@ class _PointsHt $odds['margin'] = (float) Margin::calculate([$odds['home'], $odds['away']], 1); $odds['difference'] = abs(1 / $odds['home'] - 1 / $odds['away']); + $odds['updated_at'] = DB::raw('NOW()'); ActiveSpread::collect($odds, 'odds_points_ht'); diff --git a/app/Console/Commands/Grapper/TxOdds/Odds/_PointsQ1.php b/app/Console/Commands/Grapper/TxOdds/Odds/_PointsQ1.php index a6361a41..1f127d42 100644 --- a/app/Console/Commands/Grapper/TxOdds/Odds/_PointsQ1.php +++ b/app/Console/Commands/Grapper/TxOdds/Odds/_PointsQ1.php @@ -23,6 +23,7 @@ class _PointsQ1 $odds['margin'] = (float) Margin::calculate([$odds['home'], $odds['away']], 1); $odds['difference'] = abs(1 / $odds['home'] - 1 / $odds['away']); + $odds['updated_at'] = DB::raw('NOW()'); ActiveSpread::collect($odds, 'odds_points_q1'); diff --git a/app/Console/Commands/Grapper/TxOdds/Odds/_Totals.php b/app/Console/Commands/Grapper/TxOdds/Odds/_Totals.php index 064caad4..c2152df8 100644 --- a/app/Console/Commands/Grapper/TxOdds/Odds/_Totals.php +++ b/app/Console/Commands/Grapper/TxOdds/Odds/_Totals.php @@ -29,6 +29,7 @@ class _Totals $odds['margin'] = (float) Margin::calculate([$odds['over'], $odds['under']], 1); $odds['difference'] = abs(1 / $odds['over'] - 1 / $odds['under']); + $odds['updated_at'] = DB::raw('NOW()'); ActiveSpread::collect($odds, 'odds_totals'); diff --git a/app/Console/Commands/Grapper/TxOdds/Odds/_TotalsHt.php b/app/Console/Commands/Grapper/TxOdds/Odds/_TotalsHt.php index b94a6fd1..ade8004a 100644 --- a/app/Console/Commands/Grapper/TxOdds/Odds/_TotalsHt.php +++ b/app/Console/Commands/Grapper/TxOdds/Odds/_TotalsHt.php @@ -23,6 +23,7 @@ class _TotalsHt $odds['margin'] = (float) Margin::calculate([$odds['over'], $odds['under']], 1); $odds['difference'] = abs(1 / $odds['over'] - 1 / $odds['under']); + $odds['updated_at'] = DB::raw('NOW()'); ActiveSpread::collect($odds, 'odds_totals_ht'); diff --git a/app/Console/Commands/Grapper/TxOdds/Odds/_TotalsQ1.php b/app/Console/Commands/Grapper/TxOdds/Odds/_TotalsQ1.php index 582a6913..3dfdf890 100644 --- a/app/Console/Commands/Grapper/TxOdds/Odds/_TotalsQ1.php +++ b/app/Console/Commands/Grapper/TxOdds/Odds/_TotalsQ1.php @@ -23,6 +23,7 @@ class _TotalsQ1 $odds['margin'] = (float) Margin::calculate([$odds['over'], $odds['under']], 1); $odds['difference'] = abs(1 / $odds['over'] - 1 / $odds['under']); + $odds['updated_at'] = DB::raw('NOW()'); ActiveSpread::collect($odds, 'odds_totals_q1'); diff --git a/app/Console/Commands/Grapper/TxOdds/Odds/_Tq.php b/app/Console/Commands/Grapper/TxOdds/Odds/_Tq.php index 8e61057a..f31595a7 100644 --- a/app/Console/Commands/Grapper/TxOdds/Odds/_Tq.php +++ b/app/Console/Commands/Grapper/TxOdds/Odds/_Tq.php @@ -15,6 +15,7 @@ class _Tq $odds['atq'] = (float) $value->o3; } $odds['margin'] = (float) Margin::calculate([$odds['htq'], $odds['atq']], 1); + $odds['updated_at'] = DB::raw('NOW()'); DB::table('odds_tq')->updateOrInsert([ 'event_id' => Nuh::$id, diff --git a/resources/views/livewire/top-menu-items.blade.php b/resources/views/livewire/top-menu-items.blade.php index c6288601..3b4e784b 100644 --- a/resources/views/livewire/top-menu-items.blade.php +++ b/resources/views/livewire/top-menu-items.blade.php @@ -185,18 +185,17 @@ {{-- Calculation --}} - + - + - Methods Settings + Comparing
- Methods Settings Content