fix(database): conditionally set started_at only if the database is running
This commit is contained in:
parent
460198bb05
commit
5cfe6464aa
1 changed files with 4 additions and 1 deletions
|
|
@ -33,7 +33,10 @@ public function getListeners()
|
|||
public function activityFinished()
|
||||
{
|
||||
try {
|
||||
$this->database->started_at ??= now();
|
||||
// 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()) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue