feat: add, delete student route met user logic + .js in files
This commit is contained in:
parent
e0a5596994
commit
ecad27ea4d
29 changed files with 301 additions and 159 deletions
|
@ -1,9 +1,9 @@
|
|||
import { getAssignmentRepository, getClassRepository, getGroupRepository } from "../data/repositories";
|
||||
import { GroupDTO, mapToGroupDTO, mapToGroupDTOId } from "../interfaces/groups";
|
||||
import { getAssignmentRepository, getClassRepository, getGroupRepository } from "../data/repositories.js";
|
||||
import { GroupDTO, mapToGroupDTO, mapToGroupDTOId } from "../interfaces/groups.js";
|
||||
|
||||
export async function getGroup(
|
||||
classId: string,
|
||||
assignmentNumber: number,
|
||||
classId: string,
|
||||
assignmentNumber: number,
|
||||
groupNumber: number,
|
||||
full: boolean,
|
||||
): Promise<GroupDTO | null> {
|
||||
|
@ -64,4 +64,4 @@ export async function getAllGroups(
|
|||
}
|
||||
|
||||
return groups.map(mapToGroupDTOId);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue