fix: service deletion command

This commit is contained in:
Andras Bacsai 2024-01-12 09:11:36 +01:00
parent f61210287e
commit dccb31d17e

View File

@ -2,6 +2,7 @@
namespace App\Console\Commands;
use App\Jobs\DeleteResourceJob;
use App\Models\Application;
use App\Models\Server;
use App\Models\Service;
@ -91,7 +92,7 @@ private function deleteApplication()
if (!$confirmed) {
break;
}
$toDelete->delete();
DeleteResourceJob::dispatch($toDelete);
}
}
}
@ -115,7 +116,7 @@ private function deleteDatabase()
if (!$confirmed) {
return;
}
$toDelete->delete();
DeleteResourceJob::dispatch($toDelete);
}
}
}
@ -139,7 +140,7 @@ private function deleteService()
if (!$confirmed) {
return;
}
$toDelete->delete();
DeleteResourceJob::dispatch($toDelete);
}
}
}