Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
asbiin committed Oct 16, 2023
1 parent 44e996b commit ea4c30b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/Helpers/StorageHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ public static function canUploadFile(Account $account): bool
*/
public static function uploadcare(): array
{
$signature = new Signature(config('services.uploadcare.private_key'));
$signature = config('services.uploadcare.private_key') != '' ? new Signature(config('services.uploadcare.private_key')) : null;

return [
'publicKey' => config('services.uploadcare.public_key'),
'signature' => $signature->getSignature(),
'expire' => $signature->getExpire()->getTimestamp(),
'signature' => optional($signature)->getSignature(),
'expire' => optional($signature)->getExpire()->getTimestamp(),
];
}
}

0 comments on commit ea4c30b

Please sign in to comment.