refactor: stomme typo

This commit is contained in:
Gabriellvl 2025-05-19 17:00:00 +02:00
parent ef511a1889
commit a6a34071de

View file

@ -137,7 +137,7 @@ export async function deleteAssignment(classid: string, id: number): Promise<Ass
try {
await assignmentRepository.deleteByClassAndId(cls, id);
} catch (e: unkown) {
} catch (e: unknown) {
if (e instanceof ForeignKeyConstraintViolationException) {
throw new ConflictException('Cannot delete assigment with questions or submissions');
} else {