mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-19 09:45:37 -04:00
Types and lint fixes in lib/web/note
Signed-off-by: David Mehren <dmehren1@gmail.com>
This commit is contained in:
parent
b01bb93813
commit
8b6d5a64f0
4 changed files with 21 additions and 21 deletions
|
@ -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)
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue