Skip to content

Commit

Permalink
fix: upload resources from s3-storage if its not the same as the targ…
Browse files Browse the repository at this point in the history
…et one
  • Loading branch information
Alexander Gärtner committed Jan 26, 2023
1 parent e00ab09 commit 1ebb1fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/S3Target.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class S3Target implements TargetInterface
/**
* @var array
*/
protected $existingObjectsInfo = [];
protected $existingObjectsInfo;

/**
* @var bool
Expand Down Expand Up @@ -319,7 +319,7 @@ private function publishCollectionFromS3Storage(CollectionInterface $collection,
} else {
$this->copyObject(
function (StorageObject $object) use ($storage): string {
return $this->bucketName . '/' . $storage->getKeyPrefix() . $object->getSha1();
return $storage->getBucketName() . '/' . $storage->getKeyPrefix() . $object->getSha1();
},
function (StorageObject $object) use ($storage): string {
return $storage->getKeyPrefix() . $this->getRelativePublicationPathAndFilename($object);
Expand Down

0 comments on commit 1ebb1fb

Please sign in to comment.