feat: Implement vCenter management APIs, console ticket retrieval, password encryption, and background synchronization.
This commit is contained in:
@@ -91,14 +91,10 @@ class SyncDatacenter implements ShouldQueue
|
||||
continue; // skip malformed items
|
||||
}
|
||||
|
||||
$exists = ModuleDatacenter::where('datacenter_id', $_item['datacenter'])->first();
|
||||
if (!$exists) {
|
||||
ModuleDatacenter::create([
|
||||
'name' => $_item['name'],
|
||||
'datacenter_id' => $_item['datacenter'],
|
||||
'vcenter_id' => $item->id
|
||||
]);
|
||||
}
|
||||
ModuleDatacenter::updateOrCreate(
|
||||
['datacenter_id' => $_item['datacenter']],
|
||||
['name' => $_item['name'], 'vcenter_id' => $item->id]
|
||||
);
|
||||
}
|
||||
}
|
||||
// Notify success via Telegram
|
||||
|
||||
Reference in New Issue
Block a user