add DB::transaction to catch looked query

This commit is contained in:
salam committed 2026-02-16 10:02:07 +01:00
1 parent f1b0f43ded
commit 65dc70e681
38 files changed
+218 -266

No files matched your search

@@ -101,7 +101,9 @@ class Icehockey
$res->a3w = number_format($_3way['a3w'], 2);
$res->flags = 1;
$res->margin = $_3way['margin'];
$res->save();
DB::transaction(function () use ($res) {
$res->save();
}, 5);
}
}
@@ -121,7 +123,9 @@ class Icehockey
$res->a2w = number_format($ml['a2w'], 2);
$res->flags = 1;
$res->margin = $ml['margin'];
$res->save();
DB::transaction(function () use ($res) {
$res->save();
}, 5);
}
}
@@ -140,7 +144,9 @@ class Icehockey
$res->a2w = number_format($ml['a2w'], 2);
$res->flags = 1;
$res->margin = $mls1['margin'];
$res->save();
DB::transaction(function () use ($res) {
$res->save();
}, 5);
}
}