Update src/backend/utils/database-file-encryption.ts
Co-authored-by: Copilot <[email protected]>
This commit is contained in:
co-authored by
Copilot
parent
c18ac89b2d
commit
bcc35be865
@@ -211,7 +211,7 @@ class DatabaseFileEncryption {
|
||||
|
||||
const encryptedData = fs.readFileSync(encryptedPath);
|
||||
|
||||
if (metadata.dataSize && encryptedData.length !== metadata.dataSize) {
|
||||
if (metadata.dataSize !== undefined && encryptedData.length !== metadata.dataSize) {
|
||||
databaseLogger.error(
|
||||
"Encrypted file size mismatch - possible corrupted write or mismatched metadata",
|
||||
null,
|
||||
|
||||
Reference in New Issue
Block a user