Skip to content

Commit

Permalink
fix phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
ildyria committed Apr 12, 2024
1 parent 24233ed commit e587b75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Actions/Photo/Pipes/Shared/UploadSizeVariantsToS3.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function handle(PhotoDTO $state, \Closure $next): PhotoDTO
if (Features::active('use-s3')) {
$sync = Configs::getValueAsBool('use_job_queues');

$jobs = $state->photo->size_variants->toCollection()
$jobs = $state->getPhoto()->size_variants->toCollection()
->filter(fn ($v) => $v !== null)
->map(fn (SizeVariant $variant) => new UploadSizeVariantToS3Job($variant));

Expand Down

0 comments on commit e587b75

Please sign in to comment.