improve logging a little bit

This commit is contained in:
zadam
2019-02-27 22:15:52 +01:00
parent 9f30d4e673
commit 8414d97ffa
3 changed files with 5 additions and 4 deletions

View File

@@ -292,7 +292,7 @@ async function saveLinks(note, content) {
async function saveNoteRevision(note) {
// files and images are immutable, they can't be updated
// but we don't even version titles which is probably not correct
if (note.type !== 'file' || note.type !== 'image' || await note.hasLabel('disableVersioning')) {
if (note.type === 'file' || note.type === 'image' || await note.hasLabel('disableVersioning')) {
return;
}
@@ -311,7 +311,7 @@ async function saveNoteRevision(note) {
noteId: note.noteId,
// title and text should be decrypted now
title: note.title,
content: note.noteContent.content,
content: await note.getContent(),
type: note.type,
mime: note.mime,
isProtected: false, // will be fixed in the protectNoteRevisions() call