add postgresql (#118)

This commit is contained in:
Saeed Vaziry
2024-03-16 01:04:57 +01:00
committed by GitHub
parent a406491160
commit 287c9c2a8a
25 changed files with 366 additions and 150 deletions

View File

@ -4,6 +4,7 @@
use App\Exceptions\SSHCommandError;
use App\SSH\HasScripts;
use Illuminate\Support\Facades\Log;
class Dropbox extends AbstractStorage
{
@ -23,7 +24,8 @@ public function upload(string $src, string $dest): array
$data = json_decode($upload, true);
if (isset($data['error'])) {
throw new SSHCommandError('Failed to upload to Dropbox '.$data['error']);
Log::error('Failed to upload to Dropbox', $data);
throw new SSHCommandError('Failed to upload to Dropbox');
}
return [