fix setting isErased after note migration

This commit is contained in:
zadam
2019-11-11 23:37:46 +01:00
parent 4ba7e74b58
commit 7bd1d8feb4
2 changed files with 2 additions and 2 deletions

View File

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