fix: .js toevoegen aan imports
This commit is contained in:
		
							parent
							
								
									1dce9c65c6
								
							
						
					
					
						commit
						7155d7d893
					
				
					 5 changed files with 10 additions and 14 deletions
				
			
		|  | @ -8,9 +8,8 @@ import { | |||
|     putAssignment, | ||||
| } from '../services/assignments.js'; | ||||
| import { AssignmentDTO } from '@dwengo-1/common/interfaces/assignment'; | ||||
| import { requireFields } from './error-helper'; | ||||
| import { BadRequestException } from '../exceptions/bad-request-exception'; | ||||
| import { getLogger } from '../logging/initalize.js'; | ||||
| import { requireFields } from './error-helper.js'; | ||||
| import { BadRequestException } from '../exceptions/bad-request-exception.js'; | ||||
| import { Assignment } from '../entities/assignments/assignment.entity.js'; | ||||
| import { EntityDTO } from '@mikro-orm/core'; | ||||
| 
 | ||||
|  |  | |||
|  | @ -14,7 +14,7 @@ import { | |||
|     putClass, | ||||
| } from '../services/classes.js'; | ||||
| import { ClassDTO } from '@dwengo-1/common/interfaces/class'; | ||||
| import { requireFields } from './error-helper'; | ||||
| import { requireFields } from './error-helper.js'; | ||||
| import { EntityDTO } from '@mikro-orm/core'; | ||||
| import { Class } from '../entities/classes/class.entity.js'; | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,17 +1,16 @@ | |||
| import { getClassRepository, getStudentRepository, getTeacherInvitationRepository, getTeacherRepository } from '../data/repositories.js'; | ||||
| import { getClassRepository, getTeacherInvitationRepository } from '../data/repositories.js'; | ||||
| import { mapToClassDTO } from '../interfaces/class.js'; | ||||
| import { mapToStudentDTO } from '../interfaces/student.js'; | ||||
| import { mapToTeacherInvitationDTO, mapToTeacherInvitationDTOIds } from '../interfaces/teacher-invitation.js'; | ||||
| import { getLogger } from '../logging/initalize.js'; | ||||
| import { NotFoundException } from '../exceptions/not-found-exception.js'; | ||||
| import { Class } from '../entities/classes/class.entity.js'; | ||||
| import { ClassDTO } from '@dwengo-1/common/interfaces/class'; | ||||
| import { TeacherInvitationDTO } from '@dwengo-1/common/interfaces/teacher-invitation'; | ||||
| import { StudentDTO } from '@dwengo-1/common/interfaces/student'; | ||||
| import { fetchTeacher } from './teachers'; | ||||
| import { fetchStudent, getStudent } from './students'; | ||||
| import { fetchTeacher } from './teachers.js'; | ||||
| import { fetchStudent } from './students.js'; | ||||
| import { TeacherDTO } from '@dwengo-1/common/interfaces/teacher'; | ||||
| import { mapToTeacherDTO } from '../interfaces/teacher'; | ||||
| import { mapToTeacherDTO } from '../interfaces/teacher.js'; | ||||
| import { EntityDTO } from '@mikro-orm/core'; | ||||
| import { putObject } from './service-helper.js'; | ||||
| 
 | ||||
|  |  | |||
|  | @ -23,8 +23,7 @@ import { GroupDTO } from '@dwengo-1/common/interfaces/group'; | |||
| import { SubmissionDTO, SubmissionDTOId } from '@dwengo-1/common/interfaces/submission'; | ||||
| import { QuestionDTO, QuestionId } from '@dwengo-1/common/interfaces/question'; | ||||
| import { ClassJoinRequestDTO } from '@dwengo-1/common/interfaces/class-join-request'; | ||||
| import { BadRequestException } from '../exceptions/bad-request-exception'; | ||||
| import { ConflictException } from '../exceptions/conflict-exception'; | ||||
| import { ConflictException } from '../exceptions/conflict-exception.js'; | ||||
| 
 | ||||
| export async function getAllStudents(full: boolean): Promise<StudentDTO[] | string[]> { | ||||
|     const studentRepository = getStudentRepository(); | ||||
|  |  | |||
|  | @ -22,15 +22,14 @@ import { Question } from '../entities/questions/question.entity.js'; | |||
| import { ClassJoinRequestRepository } from '../data/classes/class-join-request-repository.js'; | ||||
| import { Student } from '../entities/users/student.entity.js'; | ||||
| import { NotFoundException } from '../exceptions/not-found-exception.js'; | ||||
| import { addClassStudent, fetchClass, getClassStudents, getClassStudentsDTO } from './classes.js'; | ||||
| import { addClassStudent, fetchClass, getClassStudentsDTO } from './classes.js'; | ||||
| import { TeacherDTO } from '@dwengo-1/common/interfaces/teacher'; | ||||
| import { ClassDTO } from '@dwengo-1/common/interfaces/class'; | ||||
| import { StudentDTO } from '@dwengo-1/common/interfaces/student'; | ||||
| import { QuestionDTO, QuestionId } from '@dwengo-1/common/interfaces/question'; | ||||
| import { ClassJoinRequestDTO } from '@dwengo-1/common/interfaces/class-join-request'; | ||||
| import { ClassJoinRequestStatus } from '@dwengo-1/common/util/class-join-request'; | ||||
| import { BadRequestException } from '../exceptions/bad-request-exception'; | ||||
| import { ConflictException } from '../exceptions/conflict-exception'; | ||||
| import { ConflictException } from '../exceptions/conflict-exception.js'; | ||||
| 
 | ||||
| export async function getAllTeachers(full: boolean): Promise<TeacherDTO[] | string[]> { | ||||
|     const teacherRepository: TeacherRepository = getTeacherRepository(); | ||||
|  |  | |||
		Reference in a new issue