refactor: stomme typo
This commit is contained in:
parent
ef511a1889
commit
a6a34071de
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue