fix: functies in class repository zijn nu bereikbaar
This commit is contained in:
		
							parent
							
								
									89deb96ae4
								
							
						
					
					
						commit
						8f0a76f4e6
					
				
					 1 changed files with 6 additions and 1 deletions
				
			
		|  | @ -8,8 +8,13 @@ import { | ||||||
| import { v4 } from 'uuid'; | import { v4 } from 'uuid'; | ||||||
| import { Teacher } from '../users/teacher.entity.js'; | import { Teacher } from '../users/teacher.entity.js'; | ||||||
| import { Student } from '../users/student.entity.js'; | import { Student } from '../users/student.entity.js'; | ||||||
|  | import { ClassRepository } from '../../data/classes/class-repository.js'; | ||||||
| 
 | 
 | ||||||
| @Entity() | @Entity({ | ||||||
|  |     repository: () => { | ||||||
|  |         return ClassRepository; | ||||||
|  |     }, | ||||||
|  | }) | ||||||
| export class Class { | export class Class { | ||||||
|     @PrimaryKey() |     @PrimaryKey() | ||||||
|     classId = v4(); |     classId = v4(); | ||||||
|  |  | ||||||
		Reference in a new issue
	
	 Laure Jablonski
						Laure Jablonski