fix: .js toevoegen aan imports
This commit is contained in:
		
							parent
							
								
									ee5f69cbc8
								
							
						
					
					
						commit
						064810b4b8
					
				
					 4 changed files with 9 additions and 9 deletions
				
			
		|  | @ -1,4 +1,4 @@ | |||
| import { BadRequestException } from '../exceptions/bad-request-exception'; | ||||
| import { BadRequestException } from '../exceptions/bad-request-exception.js'; | ||||
| 
 | ||||
| /** | ||||
|  * Checks for the presence of required fields and throws a BadRequestException | ||||
|  |  | |||
|  | @ -1,8 +1,8 @@ | |||
| import { mapToStudentDTO, StudentDTO } from './student'; | ||||
| import { ClassJoinRequest, ClassJoinRequestStatus } from '../entities/classes/class-join-request.entity'; | ||||
| import { getClassJoinRequestRepository } from '../data/repositories'; | ||||
| import { Student } from '../entities/users/student.entity'; | ||||
| import { Class } from '../entities/classes/class.entity'; | ||||
| import { mapToStudentDTO, StudentDTO } from './student.js'; | ||||
| import { ClassJoinRequest, ClassJoinRequestStatus } from '../entities/classes/class-join-request.entity.js'; | ||||
| import { getClassJoinRequestRepository } from '../data/repositories.js'; | ||||
| import { Student } from '../entities/users/student.entity.js'; | ||||
| import { Class } from '../entities/classes/class.entity.js'; | ||||
| 
 | ||||
| export interface StudentRequestDTO { | ||||
|     requester: StudentDTO; | ||||
|  |  | |||
|  | @ -1,5 +1,5 @@ | |||
| import express from 'express'; | ||||
| import { createStudentRequestHandler, deleteClassJoinRequestHandler, getStudentRequestHandler } from '../controllers/students'; | ||||
| import { createStudentRequestHandler, deleteClassJoinRequestHandler, getStudentRequestHandler } from '../controllers/students.js'; | ||||
| 
 | ||||
| const router = express.Router({ mergeParams: true }); | ||||
| 
 | ||||
|  |  | |||
|  | @ -3,8 +3,8 @@ import { ClassDTO, mapToClassDTO } from '../interfaces/class.js'; | |||
| import { mapToStudentDTO, StudentDTO } from '../interfaces/student.js'; | ||||
| import { mapToTeacherInvitationDTO, mapToTeacherInvitationDTOIds, TeacherInvitationDTO } from '../interfaces/teacher-invitation.js'; | ||||
| import { getLogger } from '../logging/initalize.js'; | ||||
| import { NotFoundException } from '../exceptions/not-found-exception'; | ||||
| import { Class } from '../entities/classes/class.entity'; | ||||
| import { NotFoundException } from '../exceptions/not-found-exception.js'; | ||||
| import { Class } from '../entities/classes/class.entity.js'; | ||||
| 
 | ||||
| const logger = getLogger(); | ||||
| 
 | ||||
|  |  | |||
		Reference in a new issue