small fixes

This commit is contained in:
zadam
2019-11-13 20:28:14 +01:00
parent d4a277321c
commit 920d71a5a6
3 changed files with 6 additions and 21 deletions

View File

@@ -370,7 +370,8 @@ async function findLogicIssues() {
async ({noteRevisionId}, autoFix) => {
if (autoFix) {
const noteRevision = await repository.getNoteRevision(noteRevisionId);
await noteRevision.setContent('');
noteRevision.isErased = true;
await noteRevision.save();
logFix(`Note revision ${noteRevisionId} content was set to empty string since it was null even though it is not erased`);
}