From 64959ebf3d9052cc4ad36dac54fd3fc9c331d03f Mon Sep 17 00:00:00 2001 From: eraseyourknees <112027564+eraseyourknees@users.noreply.github.com> Date: Mon, 29 Aug 2022 16:59:10 +0200 Subject: [PATCH] Use shared functions instead of constants --- shared/requests.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shared/requests.php b/shared/requests.php index 4483934..a40977d 100644 --- a/shared/requests.php +++ b/shared/requests.php @@ -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