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

This commit is contained in:
Andras Bacsai committed 2025-05-20 11:15:31 +02:00
1 parent 35b08453e1
commit 9c3817ee14
2 files changed
+7 -9

No files matched your search

+3 -6
View File
@@ -33,16 +33,13 @@ class Heading extends Component
public function activityFinished()
{
try {
$this->database->update([
'started_at' => now(),
]);
$this->database->started_at ??= now();
$this->database->save();
if (is_null($this->database->config_hash) || $this->database->isConfigurationChanged()) {
$this->database->isConfigurationChanged(true);
$this->dispatch('configurationChanged');
} else {
$this->dispatch('configurationChanged');
}
$this->dispatch('configurationChanged');
} catch (\Exception $e) {
return handleError($e, $this);
} finally {