fix(backend): Fouten resulterend uit refactoring opgelost.
This commit is contained in:
parent
8c096ffa15
commit
f4fda7db5d
3 changed files with 5 additions and 4 deletions
|
@ -98,10 +98,10 @@ export async function getStudentGroups(username: string, full: boolean): Promise
|
|||
const groups = await groupRepository.findAllGroupsWithStudent(student);
|
||||
|
||||
if (full) {
|
||||
return groups.map(mapToGroupDTO);
|
||||
return groups.map(group => mapToGroupDTO(group, group.assignment.within));
|
||||
}
|
||||
|
||||
return groups.map(mapToGroupDTOId);
|
||||
return groups.map(group => mapToGroupDTOId(group, group.assignment.within));
|
||||
}
|
||||
|
||||
export async function getStudentSubmissions(username: string, full: boolean): Promise<SubmissionDTO[] | SubmissionDTOId[]> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue