fix(database): conditionally set started_at only if the database is running

This commit is contained in:
Andras Bacsai
2025-08-18 12:09:58 +02:00
parent 460198bb05
commit 5cfe6464aa

View File

@@ -33,7 +33,10 @@ class Heading extends Component
public function activityFinished()
{
try {
// Only set started_at if database is actually running
if ($this->database->isRunning()) {
$this->database->started_at ??= now();
}
$this->database->save();
if (is_null($this->database->config_hash) || $this->database->isConfigurationChanged()) {