refactor(common): Class

This commit is contained in:
Tibo De Peuter 2025-03-31 19:06:14 +02:00
parent 757c89d841
commit 24ed39d04e
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2
7 changed files with 18 additions and 13 deletions

View file

@ -2,14 +2,7 @@ import { Collection } from '@mikro-orm/core';
import { Class } from '../entities/classes/class.entity.js';
import { Student } from '../entities/users/student.entity.js';
import { Teacher } from '../entities/users/teacher.entity.js';
export interface ClassDTO {
id: string;
displayName: string;
teachers: string[];
students: string[];
joinRequests: string[];
}
import { ClassDTO } from 'dwengo-1-common/src/interfaces/class';
export function mapToClassDTO(cls: Class): ClassDTO {
return {