fix(backend): Added missing repository-properties to entity annotations
This commit is contained in:
parent
02be44fe53
commit
34af354a33
11 changed files with 22 additions and 11 deletions
|
@ -8,8 +8,9 @@ import {
|
|||
import { v4 } from 'uuid';
|
||||
import { Teacher } from '../users/teacher.entity.js';
|
||||
import { Student } from '../users/student.entity.js';
|
||||
import {ClassRepository} from "../../data/classes/class-repository";
|
||||
|
||||
@Entity()
|
||||
@Entity({repository: () => ClassRepository})
|
||||
export class Class {
|
||||
@PrimaryKey()
|
||||
classId = v4();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue