improvement(core): simplify events for app/db/service status changes

This commit is contained in:
Andras Bacsai committed 2025-05-19 21:50:32 +02:00
1 parent 61e45fbf3d
commit 786bfa960f
32 files changed
+251 -153

No files matched your search

+3
View File
@@ -3,6 +3,7 @@
namespace App\Actions\Service;
use App\Actions\Server\CleanupDocker;
use App\Events\ServiceStatusChanged;
use App\Models\Service;
use Lorisleiva\Actions\Concerns\AsAction;
@@ -31,6 +32,8 @@ class StopService
}
} catch (\Exception $e) {
return $e->getMessage();
} finally {
ServiceStatusChanged::dispatch($service->environment->project->team->id);
}
}
}