fix
This commit is contained in:
parent
e4781dc129
commit
4121c9dd8b
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue