mirror of
https://github.com/bitwarden/server.git
synced 2025-07-01 08:02:49 -05:00
storage adjustment and billing fixes
This commit is contained in:
@ -6,14 +6,14 @@ namespace Bit.Core.Models.Api
|
||||
public class StorageRequestModel : IValidatableObject
|
||||
{
|
||||
[Required]
|
||||
public short? StroageGbAdjustment { get; set; }
|
||||
public short? StorageGbAdjustment { get; set; }
|
||||
|
||||
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
|
||||
{
|
||||
if(StroageGbAdjustment == 0)
|
||||
if(StorageGbAdjustment == 0)
|
||||
{
|
||||
yield return new ValidationResult("Storage adjustment cannot be 0.",
|
||||
new string[] { nameof(StroageGbAdjustment) });
|
||||
new string[] { nameof(StorageGbAdjustment) });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user