Run eslint --fix on lib/

Signed-off-by: David Mehren <dmehren1@gmail.com>
This commit is contained in:
David Mehren 2020-05-09 15:01:03 +02:00
parent 7359b468e4
commit b65ae091bd
No known key found for this signature in database
GPG key ID: 6017AF117F9756CB
3 changed files with 41 additions and 42 deletions

View file

@ -1,6 +1,5 @@
import { User } from './models'
declare module 'express' {
export interface Request {
user?: User;

View file

@ -21,7 +21,7 @@ export function findNoteOrCreate (req, res, callback: (note: any) => void, inclu
}
}).then(function (note) {
if (!note) {
return newNote(req, res, "")
return newNote(req, res, '')
}
if (!checkViewPermission(req, note)) {
return errors.errorForbidden(res)