style: fix linting issues met ESLint

This commit is contained in:
Lint Action 2025-05-17 18:47:20 +00:00
parent 7f1c66c757
commit 5b00066106

View file

@ -106,7 +106,7 @@ export async function putAssignment(classid: string, id: number, assignmentData:
throw new BadRequestException("Student can only be in one group");
}
const studentLists = await Promise.all((assignmentData.groups! as string[][]).map(async group => await fetchStudents(group)));
const studentLists = await Promise.all((assignmentData.groups as string[][]).map(async group => await fetchStudents(group)));
const groupRepository = getGroupRepository();
await groupRepository.deleteAllByAssignment(assignment);