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 {
|
||||
await assignmentRepository.deleteByClassAndId(cls, id);
|
||||
} catch (e: unkown) {
|
||||
if (e instanceof ForeignKeyConstraintViolationException)
|
||||
{throw new ConflictException("Cannot delete assigment with questions or submissions");}
|
||||
else {throw e;}
|
||||
if (e instanceof ForeignKeyConstraintViolationException) {
|
||||
throw new ConflictException('Cannot delete assigment with questions or submissions');
|
||||
} else {
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
return mapToAssignmentDTO(assignment);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue