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'`, AND type != 'relation-map'`,
"Note has invalid type", errorList); "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(` await runCheck(`
SELECT SELECT
parentNoteId parentNoteId

View File

@ -219,7 +219,7 @@ function findRelationMapLinks(content, foundLinks) {
async function saveLinks(note, content) { async function saveLinks(note, content) {
if (note.type !== 'text' && note.type !== 'relation-map') { if (note.type !== 'text' && note.type !== 'relation-map') {
return; return content;
} }
const foundLinks = []; const foundLinks = [];