mirror of
https://github.com/zadam/trilium.git
synced 2025-11-05 04:45:47 +01:00
added flag for the erased notes
This commit is contained in:
@@ -228,6 +228,23 @@ async function findLogicIssues() {
|
||||
AND content IS NULL`,
|
||||
({noteId}) => `Note ${noteId} content is null even though it is not deleted`);
|
||||
|
||||
await findIssues(`
|
||||
SELECT noteId
|
||||
FROM notes
|
||||
JOIN note_contents USING(noteId)
|
||||
WHERE
|
||||
isErased = 1
|
||||
AND content IS NOT NULL`,
|
||||
({noteId}) => `Note ${noteId} content is not null even though the note is erased`);
|
||||
|
||||
await findIssues(`
|
||||
SELECT noteId
|
||||
FROM notes
|
||||
WHERE
|
||||
isErased = 1
|
||||
AND isDeleted = 0`,
|
||||
({noteId}) => `Note ${noteId} is not deleted even though it is erased`);
|
||||
|
||||
await findIssues(`
|
||||
SELECT parentNoteId
|
||||
FROM
|
||||
|
||||
Reference in New Issue
Block a user