Merge pull request #345 from davidmehren/fix-343

findNoteOrCreate: Create new note with empty string instead of `null`
This commit is contained in:
Sheogorath 2020-04-28 00:08:02 +02:00 committed by GitHub
commit d3aa040626
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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)