style: fix linting issues met Prettier
This commit is contained in:
parent
b6d522ce0b
commit
ef511a1889
1 changed files with 5 additions and 3 deletions
|
@ -138,9 +138,11 @@ export async function deleteAssignment(classid: string, id: number): Promise<Ass
|
||||||
try {
|
try {
|
||||||
await assignmentRepository.deleteByClassAndId(cls, id);
|
await assignmentRepository.deleteByClassAndId(cls, id);
|
||||||
} catch (e: unkown) {
|
} catch (e: unkown) {
|
||||||
if (e instanceof ForeignKeyConstraintViolationException)
|
if (e instanceof ForeignKeyConstraintViolationException) {
|
||||||
{throw new ConflictException("Cannot delete assigment with questions or submissions");}
|
throw new ConflictException('Cannot delete assigment with questions or submissions');
|
||||||
else {throw e;}
|
} else {
|
||||||
|
throw e;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return mapToAssignmentDTO(assignment);
|
return mapToAssignmentDTO(assignment);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue