Skip to content

Commit

Permalink
withoutRelations in job
Browse files Browse the repository at this point in the history
  • Loading branch information
QuentinGab committed Jan 9, 2025
1 parent 35fd0ab commit 7e1d35c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Jobs/MediaConversionJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ public function __construct(
public Media $media,
public string $conversion,
) {
$this->media = $media->withoutRelations();

/** @var ?string $connection */
$connection = config('media.queue_connection');
/** @var ?string $queue */
Expand All @@ -46,7 +48,7 @@ public function tags(): array
{
return [
'media',
$this->conversion,
"conversion:{$this->conversion}",
get_class($this->media).':'.$this->media->id,
"{$this->media->model_type}:{$this->media->model_id}",
];
Expand Down

0 comments on commit 7e1d35c

Please sign in to comment.