Use shared functions instead of constants

This commit is contained in:
eraseyourknees 2022-08-29 16:59:10 +02:00
parent 6c00b7c16f
commit 64959ebf3d

View File

@ -34,7 +34,7 @@ function composeDeviceAttributes($flight, $ring, $build, $arch, $sku, $type) {
if($sku == 119) {
$dvcFamily = 'Windows.Team';
}
if(in_array($sku, [7,8,12,13,79,80,120,145,146,147,148,159,160,406,407,408])) {
if(uupApiIsServer($sku)) {
$dvcFamily = 'Windows.Server';
$insType = 'Server';
$blockUpgrades = 1;
@ -329,7 +329,7 @@ function composeFetchUpdRequest($device, $encData, $arch, $flight, $ring, $build
$branch = branchFromBuild($build);
$mainProduct = 'Client.OS.rs2';
if(in_array($sku, [7,8,12,13,79,80,120,145,146,147,148,159,160,406,407,408])) {
if(uupApiIsServer($sku)) {
$mainProduct = 'Server.OS';
}
/*/ Hololens