wip mango
This commit is contained in:
1 parent
df60d37f3a
commit
ad7925bbba
19 files changed
+19040
-138
No files matched your search
@@ -15,7 +15,7 @@ class PlayerImporter extends Importer
|
||||
public static function getColumns(): array
|
||||
{
|
||||
return [
|
||||
ImportColumn::make('player_id')
|
||||
ImportColumn::make('id')
|
||||
->castStateUsing(function (string $state): ?int {
|
||||
if (blank($state)) {
|
||||
return null;
|
||||
@@ -43,7 +43,7 @@ class PlayerImporter extends Importer
|
||||
public function resolveRecord(): Player
|
||||
{
|
||||
return Player::firstOrNew([
|
||||
'player_id' => (int) $this->data['player_id'],
|
||||
'id' => (int) $this->data['id'],
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user