fix update player
This commit is contained in:
1 parent
e3f1e8a8d9
commit
f028a8b2a8
16 files changed
+605
-224
No files matched your search
@@ -2,14 +2,16 @@
|
||||
|
||||
namespace App\Filament\Imports\Helper;
|
||||
|
||||
use App\Actions\PlayerPerSeason;
|
||||
use App\Models\StatistikoDetail;
|
||||
use App\Traits\UpdatePlayerSeasonHelper;
|
||||
use Illuminate\Support\Carbon;
|
||||
use Illuminate\Support\LazyCollection;
|
||||
use Spatie\SimpleExcel\SimpleExcelReader;
|
||||
|
||||
class ImportDetails
|
||||
{
|
||||
use UpdatePlayerSeasonHelper;
|
||||
|
||||
public static function run(string $filePath): void
|
||||
{
|
||||
$now = now()->format('Y-m-d H:i:s');
|
||||
@@ -62,6 +64,6 @@ class ImportDetails
|
||||
StatistikoDetail::where('updated_at', '!=', $now)->update(['is_active' => 0]);
|
||||
|
||||
/**update statistic player tabel */
|
||||
PlayerPerSeason::run();
|
||||
UpdatePlayerSeasonHelper::update(1000000);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user