From 13b1f12885f78e4b2af4b03f7cbe521dcb5f3dc0 Mon Sep 17 00:00:00 2001 From: Ayitaka <22988712+Ayitaka@users.noreply.github.com> Date: Sat, 4 Nov 2023 09:10:06 -0700 Subject: [PATCH] Change seats, smseats, smserviceaccounts from short to int, like they are in the Bitwarden server code, to allow for the accurate maximum amount of seats --- src/licenseGen/Program.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/licenseGen/Program.cs b/src/licenseGen/Program.cs index ce21666..4e7d0be 100644 --- a/src/licenseGen/Program.cs +++ b/src/licenseGen/Program.cs @@ -416,7 +416,7 @@ namespace bitwardenSelfLicensor set("Enabled", true); set("Plan", "Custom"); set("PlanType", Enum.Parse(planTypeEnum, "Custom")); - set("Seats", (int)short.MaxValue); + set("Seats", int.MaxValue); set("MaxCollections", short.MaxValue); set("UsePolicies", true); set("UseSso", true); @@ -435,8 +435,8 @@ namespace bitwardenSelfLicensor set("UsersGetPremium", true); set("UsePasswordManager", true); set("UseSecretsManager", true); - set("SmSeats", (int)short.MaxValue); - set("SmServiceAccounts", (int)short.MaxValue); + set("SmSeats", int.MaxValue); + set("SmServiceAccounts", int.MaxValue); set("Version", 12); set("Issued", DateTime.UtcNow); set("Refresh", DateTime.UtcNow.AddYears(100).AddMonths(-1));