Types and lint fixes in lib/web/note

Signed-off-by: David Mehren <dmehren1@gmail.com>
This commit is contained in:
David Mehren 2020-05-24 18:10:37 +02:00
parent b01bb93813
commit 8b6d5a64f0
No known key found for this signature in database
GPG key ID: 6017AF117F9756CB
4 changed files with 21 additions and 21 deletions

View file

@ -5,7 +5,7 @@ import { logger } from '../../logger'
import { Note, User } from '../../models'
import * as NoteUtils from './util'
export function publishSlideActions (req: any, res: Response, next: NextFunction) {
export function publishSlideActions (req: any, res: Response) {
NoteUtils.findNoteOrCreate(req, res, function (note) {
const action = req.params.action
if (action === 'edit') {
@ -16,7 +16,7 @@ export function publishSlideActions (req: any, res: Response, next: NextFunction
})
}
export function showPublishSlide (req: any, res: Response, next: NextFunction) {
export function showPublishSlide (req: any, res: Response) {
const include = [{
model: User,
as: 'owner'
@ -44,5 +44,5 @@ export function showPublishSlide (req: any, res: Response, next: NextFunction) {
logger.error(err)
return errors.errorInternalError(res)
})
}, include)
})
}