Skip to content

armgit / ente

Public Imported from GitHub
0

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

Fix the invalid opertator issue

Mahmoud416494fe0f16
diff --git a/server/ente/user.go b/server/ente/user.go
index e99238bbe3..4b5178aec0 100644
--- a/server/ente/user.go
+++ b/server/ente/user.go
@@ -80,8 +80,8 @@ type KeyAttributes struct {
PublicKey string `json:"publicKey" binding:"required"`
EncryptedSecretKey string `json:"encryptedSecretKey" binding:"required"`
SecretKeyDecryptionNonce string `json:"secretKeyDecryptionNonce" binding:"required"`
- MemLimit int `json:"memLimit" binding:"required"`
- OpsLimit int `json:"opsLimit" binding:"required"`
+ MemLimit int64 `json:"memLimit" binding:"required"`
+ OpsLimit int64 `json:"opsLimit" binding:"required"`
MasterKeyEncryptedWithRecoveryKey string `json:"masterKeyEncryptedWithRecoveryKey"`
MasterKeyDecryptionNonce string `json:"masterKeyDecryptionNonce"`
RecoveryKeyEncryptedWithMasterKey string `json:"recoveryKeyEncryptedWithMasterKey"`
@@ -114,8 +114,8 @@ type UpdateKeysRequest struct {
KEKSalt string `json:"kekSalt" binding:"required"`
EncryptedKey string `json:"encryptedKey" binding:"required"`
KeyDecryptionNonce string `json:"keyDecryptionNonce" binding:"required"`
- MemLimit int `json:"memLimit" binding:"required"`
- OpsLimit int `json:"opsLimit" binding:"required"`
+ MemLimit int64 `json:"memLimit" binding:"required"`
+ OpsLimit int64 `json:"opsLimit" binding:"required"`
}
func (u *UpdateKeysRequest) Validate() error {