db setup fixes

This commit is contained in:
zadam
2020-03-26 16:59:40 +01:00
parent b778985b5e
commit 2e55d544f1
5 changed files with 22 additions and 16 deletions

View File

@@ -15,7 +15,7 @@ async function getNote(req) {
}
if (note.isStringNote()) {
await note.getContent();
note.content = await note.getContent();
if (note.type === 'file') {
note.content = note.content.substr(0, 10000);