Skip to content

Commit

Permalink
fix: get temporary url
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiio committed Jun 17, 2024
1 parent d77145c commit 56b79b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Models/Activity.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public function reject(?string $reason): void
public function getModifiedField(mixed $value): ?string
{
if ($this->description === 'statute') {
$value = Media::find($value)?->getUrl();
$value = Media::find($value)?->getTemporaryUrl(now()->addMinutes(5));
}

if (\gettype($value) == 'boolean') {
Expand Down

0 comments on commit 56b79b0

Please sign in to comment.