This commit is contained in:
Benjamin Toby
2024-11-07 15:27:20 +01:00
parent d9e1ac7f54
commit ba600cf8b8
216 changed files with 386 additions and 377 deletions
@@ -138,6 +138,13 @@ async function addDbEntry({
if (value == null || value == undefined) continue;
if (
targetFieldSchema?.dataType?.match(/int$/i) &&
typeof value == "string" &&
!value?.match(/./)
)
continue;
if (targetFieldSchema?.encrypted) {
value = encrypt(value, encryptionKey, encryptionSalt);
console.log("DSQL: Encrypted value =>", value);