feat(attachment): refactor image cropping functionality to use range objects and update related tests
This commit is contained in:
@@ -98,7 +98,7 @@ class TenantResource extends JsonResource
|
||||
private function formatExtraConfig(mixed $value): mixed
|
||||
{
|
||||
if ($value instanceof Attachment) {
|
||||
return $value->getTemporaryUrl(1440);
|
||||
return ($value->croppedAttachment ?? $value)->getTemporaryUrl(1440);
|
||||
}
|
||||
|
||||
if (! is_array($value)) {
|
||||
|
||||
Reference in New Issue
Block a user