fix: backups are now working again

This commit is contained in:
Andras Bacsai
2023-09-30 20:26:42 +02:00
parent 7811c75139
commit f49b87870c
5 changed files with 6 additions and 5 deletions

View File

@@ -10,7 +10,7 @@ class CreateScheduledBackup extends Component
public $database;
public $frequency;
public bool $enabled = true;
public bool $save_s3 = true;
public bool $save_s3 = false;
public $s3_storage_id;
public $s3s;

View File

@@ -61,7 +61,8 @@ class DatabaseBackupJob implements ShouldQueue, ShouldBeEncrypted
public function handle(): void
{
try {
if (data_get($this->database, 'status') !== 'running') {
$status = Str::of(data_get($this->database, 'status'));
if (!$status->startsWith('running')) {
ray('database not running');
return;
}