mirror of
https://github.com/bitwarden/server.git
synced 2025-05-23 04:21:05 -05:00
map plantype to old strings for license hash (#882)
This commit is contained in:
parent
e41aca81de
commit
66e67d2172
@ -442,6 +442,21 @@ namespace Bit.Core.Utilities
|
|||||||
return val.ToString().ToLowerInvariant();
|
return val.ToString().ToLowerInvariant();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (val is PlanType planType)
|
||||||
|
{
|
||||||
|
return planType switch
|
||||||
|
{
|
||||||
|
PlanType.Free => "Free",
|
||||||
|
PlanType.FamiliesAnnually2019 => "FamiliesAnnually",
|
||||||
|
PlanType.TeamsMonthly2019 => "TeamsMonthly",
|
||||||
|
PlanType.TeamsAnnually2019 => "TeamsAnnually",
|
||||||
|
PlanType.EnterpriseMonthly2019 => "EnterpriseMonthly",
|
||||||
|
PlanType.EnterpriseAnnually2019 => "EnterpriseAnnually",
|
||||||
|
PlanType.Custom => "Custom",
|
||||||
|
_ => ((byte)planType).ToString(),
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
return val.ToString();
|
return val.ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user