ipdate
This commit is contained in:
@@ -59,7 +59,15 @@ class StopVmJob implements ShouldQueue
|
||||
// Clear VM info cache
|
||||
\Illuminate\Support\Facades\Cache::forget('vm_info_' . $product->vmware_id);
|
||||
|
||||
$product->update(['status' => 3]); // Processing
|
||||
// Dispatch Event to Frontend
|
||||
\App\Events\VirtualMachineStatusChanged::dispatch(
|
||||
$this->userId,
|
||||
$product->vmware_id,
|
||||
'stopped',
|
||||
__('Máy ảo đã được tắt thành công.')
|
||||
);
|
||||
|
||||
$product->update(['status' => 3]); // Processing
|
||||
|
||||
dispatch(new WaitStatusVirtualMachine(
|
||||
$product->vmware_id,
|
||||
|
||||
Reference in New Issue
Block a user