Update Types

This commit is contained in:
Tben
2023-08-13 14:56:56 +01:00
parent 80e34fa6ec
commit 4aa65011e3
31 changed files with 60 additions and 39 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ const decrypt = ({ encryptedString, encryptionKey, encryptionSalt }) => {
let decrypted = decipher.update(encryptedString, "hex", "utf8");
decrypted += decipher.final("utf8");
return decrypted;
} catch (error) {
} catch (/** @type {*} */ error) {
console.log("Error in decrypting =>", error.message);
return encryptedString;
}
+1 -1
View File
@@ -36,7 +36,7 @@ const encrypt = ({ data, encryptionKey, encryptionSalt }) => {
let encrypted = cipher.update(data, "utf8", "hex");
encrypted += cipher.final("hex");
return encrypted;
} catch (error) {
} catch (/** @type {*} */ error) {
console.log("Error in encrypting =>", error.message);
return data;
}