Refactor VM resource specs resolution and enhance order payment success email with addon summary; add UpdateVmConfigJob for CPU/RAM updates

This commit is contained in:
baodev0
2026-07-17 14:00:42 +07:00
parent d9da3b5bb3
commit ad20cd5bdc
12 changed files with 458 additions and 33 deletions
@@ -20,6 +20,7 @@ class ServiceClientRepository extends BaseApiRepository implements ServiceClient
$query = $this->model
->with([
'product',
'addons',
'invoice.order',
'orderItem' => fn($q) => $q->with(['product', 'os.osGroup', 'order']),
])
@@ -60,6 +61,7 @@ class ServiceClientRepository extends BaseApiRepository implements ServiceClient
{
return $this->model
->with([
'addons',
'orderItem.os.osGroup',
'orderItem.product',
'orderItem.order',