Fixed Typping for tsc

This commit is contained in:
Felix Kaspar
2023-11-21 14:40:29 +01:00
parent 3fb8c6c6eb
commit b9b7f0d5ea
3 changed files with 8 additions and 11 deletions

View File

@@ -29,7 +29,7 @@ function handleEndpoint(req: Request, res: Response) {
pdfFiles = PdfFile.fromMulterFiles(Object.values(req.files).flatMap(va => va));
}
const operator: typeof Operator = getOperatorByName(req.params.func);
const operator = getOperatorByName(req.params.func);
if(operator) {
const operation = new operator({type: req.params.func, values: req.body});
const validationResults = operation.validate();