fix: functies uit class join request zijn nu beschikbaar
This commit is contained in:
parent
6cd4a20df9
commit
6c77bcc5ff
1 changed files with 6 additions and 1 deletions
|
@ -1,8 +1,13 @@
|
||||||
import { Entity, Enum, ManyToOne } from '@mikro-orm/core';
|
import { Entity, Enum, ManyToOne } from '@mikro-orm/core';
|
||||||
import { Student } from '../users/student.entity.js';
|
import { Student } from '../users/student.entity.js';
|
||||||
import { Class } from './class.entity.js';
|
import { Class } from './class.entity.js';
|
||||||
|
import { ClassJoinRequestRepository } from '../../data/classes/class-join-request-repository.js';
|
||||||
|
|
||||||
@Entity()
|
@Entity({
|
||||||
|
repository: () => {
|
||||||
|
return ClassJoinRequestRepository;
|
||||||
|
},
|
||||||
|
})
|
||||||
export class ClassJoinRequest {
|
export class ClassJoinRequest {
|
||||||
@ManyToOne({
|
@ManyToOne({
|
||||||
entity: () => {
|
entity: () => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue