yet another refactoring of working with note's payload/content

This commit is contained in:
zadam
2019-03-26 22:24:04 +01:00
parent 4bdcf32475
commit 29c60581a6
31 changed files with 126 additions and 239 deletions

View File

@@ -13,10 +13,10 @@ async function getNote(req) {
}
if (note.isStringNote()) {
const noteContent = await note.getNoteContent();
await note.getContent();
if (note.type === 'file') {
noteContent.content = noteContent.content.substr(0, 10000);
note.content = note.content.substr(0, 10000);
}
}