Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[server] Allow 200,1TB, & 2TB

Neeraj Guptaa5b289d290bc
diff --git a/server/ente/admin.go b/server/ente/admin.go
index 3990635324..0085ae95d8 100644
--- a/server/ente/admin.go
+++ b/server/ente/admin.go
@@ -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 {