refactor: reboot details added to server payload to account

This commit is contained in:
Zack Spear
2024-05-08 16:08:18 -07:00
committed by Zack Spear
parent 64c2061bea
commit 14951d3004
3 changed files with 9 additions and 0 deletions

View File

@@ -275,6 +275,7 @@ class ServerState
"osVersionBranch" => $this->osVersionBranch,
"protocol" => _var($_SERVER, 'REQUEST_SCHEME'),
"rebootType" => $this->rebootDetails->rebootType,
"rebootVersion" => $this->rebootDetails->rebootVersion,
"regDevs" => @(int)$this->var['regDevs'] ?? 0,
"regGen" => @(int)$this->var['regGen'],
"regGuid" => @$this->var['regGUID'] ?? '',

View File

@@ -202,6 +202,8 @@ export const useServerStore = defineStore('server', () => {
name: name.value,
osVersion: osVersion.value,
osVersionBranch: osVersionBranch.value,
rebootType: rebootType.value,
rebootVersion: rebootVersion.value,
registered: registered.value,
regDevs: computedRegDevs.value,
regGen: regGen.value,
@@ -274,6 +276,8 @@ export const useServerStore = defineStore('server', () => {
name: name.value,
osVersion: osVersion.value,
osVersionBranch: osVersionBranch.value,
rebootType: rebootType.value,
rebootVersion: rebootVersion.value,
registered: registered.value ?? false,
regGuid: regGuid.value,
regExp: regExp.value,
@@ -305,6 +309,8 @@ export const useServerStore = defineStore('server', () => {
name: name.value,
osVersion: osVersion.value,
osVersionBranch: osVersionBranch.value,
rebootType: rebootType.value,
rebootVersion: rebootVersion.value,
registered: registered.value,
regGen: regGen.value,
regGuid: regGuid.value,

View File

@@ -134,6 +134,8 @@ export interface ServerAccountCallbackSendPayload {
name?: string;
osVersion?: string;
osVersionBranch?: ServerOsVersionBranch;
rebootType?: ServerRebootType;
rebootVersion?: string;
registered: boolean;
regExp?: number;
regGen?: number;