some fixes
This commit is contained in:
@@ -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'],
|
||||||
|
|||||||
Reference in New Issue
Block a user