get all of the backups

This commit is contained in:
DanielHemmati
2025-04-25 15:53:23 +02:00
parent 81180af27d
commit 71ff19e746

View File

@@ -154,7 +154,7 @@ class DatabasesController extends Controller
return response()->json(['message' => 'Database not found.'], 404);
}
$backupConfig = ScheduledDatabaseBackup::with('executions')->where('database_id', $database->id)->first();
$backupConfig = ScheduledDatabaseBackup::with('executions')->where('database_id', $database->id)->get();
return response()->json($this->removeSensitiveData($backupConfig));
}