mirror of
https://github.com/zadam/trilium.git
synced 2025-11-05 04:45:47 +01:00
fix isProtected consistency for images and files + related consistency check
This commit is contained in:
@@ -357,6 +357,13 @@ async function findLogicIssues() {
|
||||
|
||||
logFix(`Removed link ${linkId} because target note ${targetNoteId} is also deleted.`);
|
||||
});
|
||||
|
||||
await findIssues(`
|
||||
SELECT noteId
|
||||
FROM notes
|
||||
JOIN note_contents USING(noteId)
|
||||
WHERE notes.isDeleted = 0 AND notes.isProtected != note_contents.isProtected`,
|
||||
({noteId}) => `Note ${noteId} has inconsistent isProtected in notes and note_contents tables`);
|
||||
}
|
||||
|
||||
async function runSyncRowChecks(entityName, key) {
|
||||
|
||||
Reference in New Issue
Block a user