diff --git a/app/Libraries/DBMigration/Process/ClientProcess.php b/app/Libraries/DBMigration/Process/ClientProcess.php index c89c411..25639cf 100644 --- a/app/Libraries/DBMigration/Process/ClientProcess.php +++ b/app/Libraries/DBMigration/Process/ClientProcess.php @@ -17,7 +17,6 @@ class ClientProcess implements MigrationProcessInterface { $temps = []; $temps['site'] = 'prime'; - $temps['code'] = $temps['site'] . "_c" . uniqid(); $temps['user_uid'] = 1; $temps['role'] = $row['Client_Reseller'] == 30 ? "reseller" : "user"; $temps['name'] = $row['Client_Name']; diff --git a/app/Services/Equipment/ServerPartService.php b/app/Services/Equipment/ServerPartService.php index 4a8ab2f..8a18867 100644 --- a/app/Services/Equipment/ServerPartService.php +++ b/app/Services/Equipment/ServerPartService.php @@ -235,7 +235,7 @@ class ServerPartService extends EquipmentService $formDatas['cnt'] = $part["CNT"]; $formDatas['extra'] = $part["EXTRA"]; $entity = $this->getModel()->create($formDatas); - $this->getPartService($entity->getTeyp())->attachToServerPart($entity); + $this->getPartService($entity->getType())->attachToServerPart($entity); } } }