This commit is contained in:
Andras Bacsai 2023-12-27 23:07:39 +01:00
parent e4781dc129
commit 4121c9dd8b

View File

@ -58,7 +58,7 @@ public function handle()
private function restore_coolify_db_backup() {
try {
$database = StandalonePostgresql::withTrashed()->find(0);
if ($database) {
if ($database && $database->trashed()) {
echo "Restoring coolify db backup\n";
$database->restore();
$scheduledBackup = ScheduledDatabaseBackup::find(0);