fix: don't create notes if not found in presentation route
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
@@ -5,7 +5,7 @@ const errors = require('../../errors')
|
||||
const fs = require('fs')
|
||||
const path = require('path')
|
||||
|
||||
exports.findNote = function (req, res, callback, include, createIfNotFound = true) {
|
||||
exports.findNote = function (req, res, callback, include = null, createIfNotFound = false) {
|
||||
const id = req.params.noteId || req.params.shortid
|
||||
models.Note.parseNoteId(id, function (err, _id) {
|
||||
if (err) {
|
||||
|
||||
Reference in New Issue
Block a user