fix: credit character too long to fit in database column

Limit it to 200 instead of erroring.
This commit is contained in:
Roardom
2025-02-26 16:59:37 +00:00
parent 51937c897e
commit 2ff2074747
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
];
}
+1 -1
View File
@@ -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
];
}