Update src/backend/utils/database-file-encryption.ts

Co-authored-by: Copilot <[email protected]>
This commit is contained in:
Luke Gustafson
2025-11-05 21:20:05 -06:00
committed by GitHub
co-authored by Copilot
parent c18ac89b2d
commit bcc35be865
@@ -211,7 +211,7 @@ class DatabaseFileEncryption {
const encryptedData = fs.readFileSync(encryptedPath); const encryptedData = fs.readFileSync(encryptedPath);
if (metadata.dataSize && encryptedData.length !== metadata.dataSize) { if (metadata.dataSize !== undefined && encryptedData.length !== metadata.dataSize) {
databaseLogger.error( databaseLogger.error(
"Encrypted file size mismatch - possible corrupted write or mismatched metadata", "Encrypted file size mismatch - possible corrupted write or mismatched metadata",
null, null,