fix: Allow empty document body to be saved

closes #1258
This commit is contained in:
Tom Moor
2020-05-07 20:52:02 -07:00
parent bd2837250b
commit 06a3258b99
2 changed files with 19 additions and 1 deletions

View File

@ -809,7 +809,7 @@ router.post('documents.update', auth(), async ctx => {
if (append) {
document.text += text;
} else if (text) {
} else if (text !== undefined) {
document.text = text;
}
document.lastModifiedById = user.id;