findNoteOrCreate: Create new note with empty string instead of null

Signed-off-by: David Mehren <dmehren1@gmail.com>
This commit is contained in:
David Mehren 2020-04-26 22:10:20 +02:00
parent 2c7d743cb6
commit 3ac388b765
No known key found for this signature in database
GPG key ID: 6017AF117F9756CB

View file

@ -22,7 +22,7 @@ export module NoteUtils {
} }
}).then(function (note) { }).then(function (note) {
if (!note) { if (!note) {
return newNote(req, res, null) return newNote(req, res, "")
} }
if (!checkViewPermission(req, note)) { if (!checkViewPermission(req, note)) {
return errors.errorForbidden(res) return errors.errorForbidden(res)