fix: notifications

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

View File

@@ -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()
{