fix: fixed linter errors
This commit is contained in:
parent
faa2f58145
commit
7f670030a7
13 changed files with 23 additions and 28 deletions
|
@ -102,7 +102,7 @@ export async function createQuestion(loId: LearningObjectIdentifier, questionDat
|
|||
const question = await questionRepository.createQuestion({
|
||||
loId,
|
||||
author,
|
||||
inGroup: group!,
|
||||
inGroup: group,
|
||||
content,
|
||||
});
|
||||
|
||||
|
|
|
@ -59,7 +59,8 @@ export async function getStudent(username: string): Promise<StudentDTO> {
|
|||
return mapToStudentDTO(user);
|
||||
}
|
||||
|
||||
export async function createStudent(userData: StudentDTO, allowUpdate = false): Promise<StudentDTO> {
|
||||
// TODO allowupdate parameter?
|
||||
export async function createStudent(userData: StudentDTO, _allowUpdate = false): Promise<StudentDTO> {
|
||||
const studentRepository = getStudentRepository();
|
||||
|
||||
const newStudent = mapToStudent(userData);
|
||||
|
|
|
@ -58,7 +58,8 @@ export async function getTeacher(username: string): Promise<TeacherDTO> {
|
|||
return mapToTeacherDTO(user);
|
||||
}
|
||||
|
||||
export async function createTeacher(userData: TeacherDTO, update?: boolean): Promise<TeacherDTO> {
|
||||
// TODO update parameter
|
||||
export async function createTeacher(userData: TeacherDTO, _update?: boolean): Promise<TeacherDTO> {
|
||||
const teacherRepository: TeacherRepository = getTeacherRepository();
|
||||
|
||||
const newTeacher = mapToTeacher(userData);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue