add touch updated_at
This commit is contained in:
1 parent
1156680b77
commit
1bb3daca93
15 files changed
+17
-4
No files matched your search
@@ -16,6 +16,7 @@ class _2Way
|
|||||||
$odds['starttime'] = (string) $value['starttime'];
|
$odds['starttime'] = (string) $value['starttime'];
|
||||||
}
|
}
|
||||||
$odds['margin'] = (float) Margin::calculate([$odds['h2w'], $odds['a2w']], 1);
|
$odds['margin'] = (float) Margin::calculate([$odds['h2w'], $odds['a2w']], 1);
|
||||||
|
$odds['updated_at'] = DB::raw('NOW()');
|
||||||
|
|
||||||
DB::table('odds_2ways')->updateOrInsert([
|
DB::table('odds_2ways')->updateOrInsert([
|
||||||
'event_id' => Nuh::$id,
|
'event_id' => Nuh::$id,
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ class _2WayS1
|
|||||||
$odds['a2w'] = (float) $value->o3;
|
$odds['a2w'] = (float) $value->o3;
|
||||||
}
|
}
|
||||||
$odds['margin'] = (float) Margin::calculate([$odds['h2w'], $odds['a2w']], 1);
|
$odds['margin'] = (float) Margin::calculate([$odds['h2w'], $odds['a2w']], 1);
|
||||||
|
$odds['updated_at'] = DB::raw('NOW()');
|
||||||
|
|
||||||
DB::table('odds_2ways_s1')->updateOrInsert([
|
DB::table('odds_2ways_s1')->updateOrInsert([
|
||||||
'event_id' => Nuh::$id,
|
'event_id' => Nuh::$id,
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ class _3Way
|
|||||||
$odds['starttime'] = (string) $value['starttime'];
|
$odds['starttime'] = (string) $value['starttime'];
|
||||||
}
|
}
|
||||||
$odds['margin'] = (float) Margin::calculate([$odds['h3w'], $odds['d3w'], $odds['a3w']], 1);
|
$odds['margin'] = (float) Margin::calculate([$odds['h3w'], $odds['d3w'], $odds['a3w']], 1);
|
||||||
|
$odds['updated_at'] = DB::raw('NOW()');
|
||||||
|
|
||||||
DB::table('odds_3ways')->updateOrInsert([
|
DB::table('odds_3ways')->updateOrInsert([
|
||||||
'event_id' => Nuh::$id,
|
'event_id' => Nuh::$id,
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ class _3WayHt
|
|||||||
$odds['a3w'] = (float) $value->o3;
|
$odds['a3w'] = (float) $value->o3;
|
||||||
}
|
}
|
||||||
$odds['margin'] = (float) Margin::calculate([$odds['h3w'], $odds['d3w'], $odds['a3w']], 1);
|
$odds['margin'] = (float) Margin::calculate([$odds['h3w'], $odds['d3w'], $odds['a3w']], 1);
|
||||||
|
$odds['updated_at'] = DB::raw('NOW()');
|
||||||
|
|
||||||
DB::table('odds_3ways_ht')->updateOrInsert([
|
DB::table('odds_3ways_ht')->updateOrInsert([
|
||||||
'event_id' => Nuh::$id,
|
'event_id' => Nuh::$id,
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ class _Dc
|
|||||||
$odds['dcx2'] = (float) $value->o3;
|
$odds['dcx2'] = (float) $value->o3;
|
||||||
}
|
}
|
||||||
$odds['margin'] = (float) Margin::calculate([$odds['dc1x'], $odds['dc12'], $odds['dcx2']], 1);
|
$odds['margin'] = (float) Margin::calculate([$odds['dc1x'], $odds['dc12'], $odds['dcx2']], 1);
|
||||||
|
$odds['updated_at'] = DB::raw('NOW()');
|
||||||
|
|
||||||
DB::table('odds_dc')->updateOrInsert([
|
DB::table('odds_dc')->updateOrInsert([
|
||||||
'event_id' => Nuh::$id,
|
'event_id' => Nuh::$id,
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ class _Dnb
|
|||||||
$odds['dnb2'] = (float) $value->o3;
|
$odds['dnb2'] = (float) $value->o3;
|
||||||
}
|
}
|
||||||
$odds['margin'] = (float) Margin::calculate([$odds['dnb1'], $odds['dnb2']], 1);
|
$odds['margin'] = (float) Margin::calculate([$odds['dnb1'], $odds['dnb2']], 1);
|
||||||
|
$odds['updated_at'] = DB::raw('NOW()');
|
||||||
|
|
||||||
DB::table('odds_dnb')->updateOrInsert([
|
DB::table('odds_dnb')->updateOrInsert([
|
||||||
'event_id' => Nuh::$id,
|
'event_id' => Nuh::$id,
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ class _Ggng
|
|||||||
$odds['ng'] = (float) $value->o3;
|
$odds['ng'] = (float) $value->o3;
|
||||||
}
|
}
|
||||||
$odds['margin'] = (float) Margin::calculate([$odds['gg'], $odds['ng']], 1);
|
$odds['margin'] = (float) Margin::calculate([$odds['gg'], $odds['ng']], 1);
|
||||||
|
$odds['updated_at'] = DB::raw('NOW()');
|
||||||
|
|
||||||
DB::table('odds_ggng')->updateOrInsert([
|
DB::table('odds_ggng')->updateOrInsert([
|
||||||
'event_id' => Nuh::$id,
|
'event_id' => Nuh::$id,
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ class _Points
|
|||||||
|
|
||||||
$odds['margin'] = (float) Margin::calculate([$odds['home'], $odds['away']], 1);
|
$odds['margin'] = (float) Margin::calculate([$odds['home'], $odds['away']], 1);
|
||||||
$odds['difference'] = abs(1 / $odds['home'] - 1 / $odds['away']);
|
$odds['difference'] = abs(1 / $odds['home'] - 1 / $odds['away']);
|
||||||
|
$odds['updated_at'] = DB::raw('NOW()');
|
||||||
|
|
||||||
ActiveSpread::collect($odds, 'odds_points');
|
ActiveSpread::collect($odds, 'odds_points');
|
||||||
|
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ class _PointsHt
|
|||||||
|
|
||||||
$odds['margin'] = (float) Margin::calculate([$odds['home'], $odds['away']], 1);
|
$odds['margin'] = (float) Margin::calculate([$odds['home'], $odds['away']], 1);
|
||||||
$odds['difference'] = abs(1 / $odds['home'] - 1 / $odds['away']);
|
$odds['difference'] = abs(1 / $odds['home'] - 1 / $odds['away']);
|
||||||
|
$odds['updated_at'] = DB::raw('NOW()');
|
||||||
|
|
||||||
ActiveSpread::collect($odds, 'odds_points_ht');
|
ActiveSpread::collect($odds, 'odds_points_ht');
|
||||||
|
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ class _PointsQ1
|
|||||||
|
|
||||||
$odds['margin'] = (float) Margin::calculate([$odds['home'], $odds['away']], 1);
|
$odds['margin'] = (float) Margin::calculate([$odds['home'], $odds['away']], 1);
|
||||||
$odds['difference'] = abs(1 / $odds['home'] - 1 / $odds['away']);
|
$odds['difference'] = abs(1 / $odds['home'] - 1 / $odds['away']);
|
||||||
|
$odds['updated_at'] = DB::raw('NOW()');
|
||||||
|
|
||||||
ActiveSpread::collect($odds, 'odds_points_q1');
|
ActiveSpread::collect($odds, 'odds_points_q1');
|
||||||
|
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ class _Totals
|
|||||||
|
|
||||||
$odds['margin'] = (float) Margin::calculate([$odds['over'], $odds['under']], 1);
|
$odds['margin'] = (float) Margin::calculate([$odds['over'], $odds['under']], 1);
|
||||||
$odds['difference'] = abs(1 / $odds['over'] - 1 / $odds['under']);
|
$odds['difference'] = abs(1 / $odds['over'] - 1 / $odds['under']);
|
||||||
|
$odds['updated_at'] = DB::raw('NOW()');
|
||||||
|
|
||||||
ActiveSpread::collect($odds, 'odds_totals');
|
ActiveSpread::collect($odds, 'odds_totals');
|
||||||
|
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ class _TotalsHt
|
|||||||
|
|
||||||
$odds['margin'] = (float) Margin::calculate([$odds['over'], $odds['under']], 1);
|
$odds['margin'] = (float) Margin::calculate([$odds['over'], $odds['under']], 1);
|
||||||
$odds['difference'] = abs(1 / $odds['over'] - 1 / $odds['under']);
|
$odds['difference'] = abs(1 / $odds['over'] - 1 / $odds['under']);
|
||||||
|
$odds['updated_at'] = DB::raw('NOW()');
|
||||||
|
|
||||||
ActiveSpread::collect($odds, 'odds_totals_ht');
|
ActiveSpread::collect($odds, 'odds_totals_ht');
|
||||||
|
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ class _TotalsQ1
|
|||||||
|
|
||||||
$odds['margin'] = (float) Margin::calculate([$odds['over'], $odds['under']], 1);
|
$odds['margin'] = (float) Margin::calculate([$odds['over'], $odds['under']], 1);
|
||||||
$odds['difference'] = abs(1 / $odds['over'] - 1 / $odds['under']);
|
$odds['difference'] = abs(1 / $odds['over'] - 1 / $odds['under']);
|
||||||
|
$odds['updated_at'] = DB::raw('NOW()');
|
||||||
|
|
||||||
ActiveSpread::collect($odds, 'odds_totals_q1');
|
ActiveSpread::collect($odds, 'odds_totals_q1');
|
||||||
|
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ class _Tq
|
|||||||
$odds['atq'] = (float) $value->o3;
|
$odds['atq'] = (float) $value->o3;
|
||||||
}
|
}
|
||||||
$odds['margin'] = (float) Margin::calculate([$odds['htq'], $odds['atq']], 1);
|
$odds['margin'] = (float) Margin::calculate([$odds['htq'], $odds['atq']], 1);
|
||||||
|
$odds['updated_at'] = DB::raw('NOW()');
|
||||||
|
|
||||||
DB::table('odds_tq')->updateOrInsert([
|
DB::table('odds_tq')->updateOrInsert([
|
||||||
'event_id' => Nuh::$id,
|
'event_id' => Nuh::$id,
|
||||||
|
|||||||
@@ -185,18 +185,17 @@
|
|||||||
|
|
||||||
{{-- Calculation --}}
|
{{-- Calculation --}}
|
||||||
|
|
||||||
<x-filament::modal slide-over width="4xl" icon="phosphor-calculator" tooltip="Methods Settings">
|
<x-filament::modal slide-over width="4xl" icon="phosphor-sliders" tooltip="Comparing">
|
||||||
<x-slot name="trigger">
|
<x-slot name="trigger">
|
||||||
<x-filament::button outlined icon="phosphor-calculator" color="gray">
|
<x-filament::button outlined icon="phosphor-sliders" color="gray">
|
||||||
</x-filament::button>
|
</x-filament::button>
|
||||||
</x-slot>
|
</x-slot>
|
||||||
|
|
||||||
<x-slot name="heading">
|
<x-slot name="heading">
|
||||||
Methods Settings
|
Comparing
|
||||||
</x-slot>
|
</x-slot>
|
||||||
|
|
||||||
<div class="grid grid-cols-2 gap-4">
|
<div class="grid grid-cols-2 gap-4">
|
||||||
Methods Settings Content
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</x-filament::modal>
|
</x-filament::modal>
|
||||||
|
|||||||
Reference in new issue
Block a user