fix: fixed groups in return van createAssignment
This commit is contained in:
parent
e3fc4b72a7
commit
ba9906eb93
4 changed files with 17 additions and 23 deletions
|
@ -47,6 +47,11 @@ export async function fetchStudent(username: string): Promise<Student> {
|
|||
return user;
|
||||
}
|
||||
|
||||
export async function fetchStudents(usernames: string[]): Promise<Student[]> {
|
||||
const members = await Promise.all(usernames.map(async (username) => await fetchStudent(username)));
|
||||
return members;
|
||||
}
|
||||
|
||||
export async function getStudent(username: string): Promise<StudentDTO> {
|
||||
const user = await fetchStudent(username);
|
||||
return mapToStudentDTO(user);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue