fix: delete event to deleting

This commit is contained in:
Andras Bacsai committed 2023-10-05 08:46:26 +02:00
1 parent 1c8f92d3b7
commit 91db1953ff
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -16,7 +16,7 @@ class Service extends BaseModel
protected static function booted()
{
static::deleted(function ($service) {
static::deleting(function ($service) {
$storagesToDelete = collect([]);
foreach ($service->applications()->get() as $application) {
instant_remote_process(["docker rm -f {$application->name}-{$service->uuid}"], $service->server, false);