Update HostingSubscription.php

This commit is contained in:
Bozhidar 2024-05-01 02:16:24 +03:00
parent b27886a6ff
commit 908d987551

View file

@ -61,6 +61,10 @@ class HostingSubscription extends Model
static::deleting(function ($model) {
if (empty($model->system_username)) {
throw new \Exception('System username is empty');
}
$getLinuxUser = new GetLinuxUser();
$getLinuxUser->setUsername($model->system_username);
$getLinuxUserStatus = $getLinuxUser->handle();