style: fix linting issues met Prettier

This commit is contained in:
Lint Action 2025-05-19 14:54:59 +00:00
parent b6d522ce0b
commit ef511a1889

View file

@ -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);