some fixes

This commit is contained in:
Doar Mihai
2026-03-08 14:36:46 +02:00
parent 5689105551
commit f8c1324e11
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -79,4 +79,9 @@ class ItemToFetchJobs extends Model
'type', 'type',
'jobs', 'jobs',
]; ];
// Ensure jobs is not auto-cast to JSON
protected $casts = [
'jobs' => 'string',
];
} }
@@ -624,6 +624,7 @@ class MovieProcessingService implements ProcessingInterface
$jobs = ItemToFetchJobs::JOBS; $jobs = ItemToFetchJobs::JOBS;
$jobs[] = "Details"; $jobs[] = "Details";
$jobs = array_unique($jobs);
ItemToFetchJobs::create([ ItemToFetchJobs::create([
'tmdb_id' => $tmdbRecommendation['id'], 'tmdb_id' => $tmdbRecommendation['id'],