mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	chore(types): adapt to new express type definitions
This commit is contained in:
		| @@ -14,9 +14,8 @@ import ValidationError from "../../errors/validation_error.js"; | ||||
| import { Request, Response } from 'express'; | ||||
| import BNote from "../../becca/entities/bnote.js"; | ||||
| import BAttachment from "../../becca/entities/battachment.js"; | ||||
| import { AppRequest } from '../route-interface.js'; | ||||
|  | ||||
| function updateFile(req: AppRequest) { | ||||
| function updateFile(req: Request) { | ||||
|     const note = becca.getNoteOrThrow(req.params.noteId); | ||||
|  | ||||
|     const file = req.file; | ||||
| @@ -43,7 +42,7 @@ function updateFile(req: AppRequest) { | ||||
|     }; | ||||
| } | ||||
|  | ||||
| function updateAttachment(req: AppRequest) { | ||||
| function updateAttachment(req: Request) { | ||||
|     const attachment = becca.getAttachmentOrThrow(req.params.attachmentId); | ||||
|     const file = req.file; | ||||
|     if (!file) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user