mirror of
https://github.com/bitwarden/server.git
synced 2025-02-23 03:01:23 +01:00
Fixed storage issue when upgrading from a free plan (#942)
This commit is contained in:
parent
8e1a9b8b8d
commit
845f9f5245
@ -253,8 +253,6 @@ namespace Bit.Core.Services
|
||||
organization.PlanType = newPlan.Type;
|
||||
organization.Seats = (short)(newPlan.BaseSeats + upgrade.AdditionalSeats);
|
||||
organization.MaxCollections = newPlan.MaxCollections;
|
||||
organization.MaxStorageGb = !newPlan.BaseStorageGb.HasValue ?
|
||||
(short?)null : (short)(newPlan.BaseStorageGb.Value + upgrade.AdditionalStorageGb);
|
||||
organization.UseGroups = newPlan.HasGroups;
|
||||
organization.UseDirectory = newPlan.HasDirectory;
|
||||
organization.UseEvents = newPlan.HasEvents;
|
||||
@ -263,8 +261,8 @@ namespace Bit.Core.Services
|
||||
organization.UseApi = newPlan.HasApi;
|
||||
organization.SelfHost = newPlan.HasSelfHost;
|
||||
organization.UsePolicies = newPlan.HasPolicies;
|
||||
organization.MaxStorageGb = !newPlan.MaxAdditionalStorage.HasValue ?
|
||||
(short?)null : (short)(newPlan.MaxAdditionalStorage.Value + upgrade.AdditionalStorageGb);
|
||||
organization.MaxStorageGb = !newPlan.BaseStorageGb.HasValue ?
|
||||
(short?)null : (short)(newPlan.BaseStorageGb.Value + upgrade.AdditionalStorageGb);
|
||||
organization.UseGroups = newPlan.HasGroups;
|
||||
organization.UseDirectory = newPlan.HasDirectory;
|
||||
organization.UseEvents = newPlan.HasEvents;
|
||||
|
Loading…
Reference in New Issue
Block a user