mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-22 01:38:49 -05:00
fix: credit character too long to fit in database column
Limit it to 200 instead of erroring.
This commit is contained in:
@@ -363,7 +363,7 @@ class Movie
|
||||
'movie_id' => $this->data['id'] ?? null,
|
||||
'person_id' => $person['id'] ?? null,
|
||||
'occupation_id' => Occupation::ACTOR->value,
|
||||
'character' => $person['character'] ?? '',
|
||||
'character' => Str::limit($person['character'] ?? '', 200),
|
||||
'order' => $person['order'] ?? null
|
||||
];
|
||||
}
|
||||
|
||||
@@ -412,7 +412,7 @@ class TV
|
||||
'tv_id' => $this->data['id'],
|
||||
'person_id' => $person['id'],
|
||||
'occupation_id' => Occupation::ACTOR->value,
|
||||
'character' => $role['character'] ?? '',
|
||||
'character' => Str::limit($role['character'] ?? '', 200),
|
||||
'order' => $person['order'] ?? null
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user