mirror of
https://github.com/ente-io/ente.git
synced 2025-08-08 07:28:26 +00:00
[server] Allow 200,1TB, & 2TB
This commit is contained in:
parent
0925f7f0a2
commit
a5b289d290
@ -116,8 +116,8 @@ func (u SupportUpdateBonus) Validate() error {
|
||||
return errors.New("invalid input, set in MB and minute for test")
|
||||
}
|
||||
} else {
|
||||
if u.StorageInGB != 200 && u.StorageInGB != 2000 && u.StorageInGB != 500 {
|
||||
return errors.New("invalid input for deal, only 100, 500, 2000 allowed")
|
||||
if u.StorageInGB != 200 && u.StorageInGB != 2000 && u.StorageInGB != 1000 {
|
||||
return errors.New("invalid input for deal, only 200, 1000, 2000 allowed")
|
||||
}
|
||||
if isSupportBonus {
|
||||
if u.Year == 0 || u.Year > 100 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user