fix: restore error variable in catch block for logging

Fix TypeScript error where error variable was removed from catch block
but still used in logging statements. The error variable is needed for
proper error logging and re-throwing.
This commit is contained in:
ZacharyZcR
2025-10-05 20:33:41 +08:00
parent 83610cb077
commit bbceb671fc

View File

@@ -53,7 +53,7 @@ export class LazyFieldEncryption {
fieldName,
);
return decrypted;
} catch {
} catch (error) {
const legacyFieldName = this.LEGACY_FIELD_NAME_MAP[fieldName];
if (legacyFieldName) {
try {