refactor(common): Teacher

This commit is contained in:
Tibo De Peuter 2025-03-31 21:43:17 +02:00
parent 3b51b0f1f6
commit 6ff29cb949
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2
7 changed files with 28 additions and 24 deletions

View file

@ -1,18 +1,6 @@
import { Teacher } from '../entities/users/teacher.entity.js';
import { getTeacherRepository } from '../data/repositories.js';
export interface TeacherDTO {
id: string;
username: string;
firstName: string;
lastName: string;
endpoints?: {
classes: string;
questions: string;
invitations: string;
groups: string;
};
}
import { TeacherDTO } from 'dwengo-1-common/src/interfaces/teacher';
export function mapToTeacherDTO(teacher: Teacher): TeacherDTO {
return {