fix: linter issues
This commit is contained in:
parent
cecd62c8f2
commit
5fb3f4efd9
3 changed files with 2 additions and 4 deletions
|
@ -14,7 +14,7 @@ import { BadRequestException } from '../exceptions/bad-request-exception.js';
|
|||
import { Assignment } from '../entities/assignments/assignment.entity.js';
|
||||
import { EntityDTO } from '@mikro-orm/core';
|
||||
|
||||
function getAssignmentParams(req: Request) {
|
||||
function getAssignmentParams(req: Request): { classid: string, assignmentNumber: number, full: boolean } {
|
||||
const classid = req.params.classid;
|
||||
const assignmentNumber = Number(req.params.id);
|
||||
const full = req.query.full === 'true';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue