fix
This commit is contained in:
parent
e4781dc129
commit
4121c9dd8b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user