fix(deploy): update resource timestamp handling in deploy_resource method

This commit is contained in:
Andras Bacsai
2025-05-20 10:33:55 +02:00
parent 35b08453e1
commit 9c3817ee14
2 changed files with 7 additions and 9 deletions

View File

@@ -319,9 +319,10 @@ class DeployController extends Controller
default:
// Database resource
StartDatabase::dispatch($resource);
$resource->update([
'started_at' => now(),
]);
$resource->started_at ??= now();
$resource->save();
$message = "Database {$resource->name} started.";
break;
}