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
|
* Checks for the presence of required fields and throws a BadRequestException
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
import { mapToStudentDTO, StudentDTO } from './student';
|
import { mapToStudentDTO, StudentDTO } from './student.js';
|
||||||
import { ClassJoinRequest, ClassJoinRequestStatus } from '../entities/classes/class-join-request.entity';
|
import { ClassJoinRequest, ClassJoinRequestStatus } from '../entities/classes/class-join-request.entity.js';
|
||||||
import { getClassJoinRequestRepository } from '../data/repositories';
|
import { getClassJoinRequestRepository } from '../data/repositories.js';
|
||||||
import { Student } from '../entities/users/student.entity';
|
import { Student } from '../entities/users/student.entity.js';
|
||||||
import { Class } from '../entities/classes/class.entity';
|
import { Class } from '../entities/classes/class.entity.js';
|
||||||
|
|
||||||
export interface StudentRequestDTO {
|
export interface StudentRequestDTO {
|
||||||
requester: StudentDTO;
|
requester: StudentDTO;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import express from 'express';
|
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 });
|
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 { mapToStudentDTO, StudentDTO } from '../interfaces/student.js';
|
||||||
import { mapToTeacherInvitationDTO, mapToTeacherInvitationDTOIds, TeacherInvitationDTO } from '../interfaces/teacher-invitation.js';
|
import { mapToTeacherInvitationDTO, mapToTeacherInvitationDTOIds, TeacherInvitationDTO } from '../interfaces/teacher-invitation.js';
|
||||||
import { getLogger } from '../logging/initalize.js';
|
import { getLogger } from '../logging/initalize.js';
|
||||||
import { NotFoundException } from '../exceptions/not-found-exception';
|
import { NotFoundException } from '../exceptions/not-found-exception.js';
|
||||||
import { Class } from '../entities/classes/class.entity';
|
import { Class } from '../entities/classes/class.entity.js';
|
||||||
|
|
||||||
const logger = getLogger();
|
const logger = getLogger();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue