chore: release latest code (#1075)

This commit is contained in:
Aman Harwara
2025-04-29 17:03:15 +05:30
committed by GitHub
parent 578ce0e74e
commit 0d82819cba
32 changed files with 350 additions and 29 deletions

View File

@@ -52,9 +52,22 @@ export class SettingCrypter implements SettingCrypterInterface {
throw new Error(`Could not find user with uuid: ${userUuid.value}`)
}
if (!this.isValidJSONSubjectForDecryption(value)) {
return value
}
return this.crypter.decryptForUser(value, user)
}
return value
}
private isValidJSONSubjectForDecryption(value: string): boolean {
try {
JSON.parse(value)
return true
} catch (error) {
return false
}
}
}