fix bug when saving non-text notes

This commit is contained in:
azivner
2018-11-19 23:11:36 +01:00
parent 50401954d1
commit 585398ad5c
2 changed files with 11 additions and 1 deletions

View File

@@ -209,6 +209,16 @@ async function runAllChecks() {
AND type != 'relation-map'`,
"Note has invalid type", errorList);
await runCheck(`
SELECT
noteId
FROM
notes
WHERE
isDeleted = 0
AND content IS NULL`,
"Note content is null even though it is not deleted", errorList);
await runCheck(`
SELECT
parentNoteId