fix: notifications

feat: add app stopped notification
This commit is contained in:
Andras Bacsai committed 2023-07-26 14:46:28 +02:00
1 parent 98d057a2ac
commit 802ef03013
7 files changed
+146 -5

No files matched your search

@@ -4,6 +4,7 @@ namespace App\Http\Livewire\Application;
use App\Jobs\ApplicationContainerStatusJob;
use App\Models\Application;
use App\Notifications\Notifications\Application\ApplicationStoppedNotification;
use Livewire\Component;
use Visus\Cuid2\Cuid2;
@@ -54,6 +55,7 @@ class Heading extends Component
);
$this->application->status = 'stopped';
$this->application->save();
$this->application->environment->project->team->notify(new ApplicationStoppedNotification($this->application));
}
protected function setDeploymentUuid()
{