fix(backend): Formatting + .env.development.example
npm run format uitgevoerd, .env.development.example toegevoegd.
This commit is contained in:
		
							parent
							
								
									4e883a1a18
								
							
						
					
					
						commit
						48c8ce7c57
					
				
					 36 changed files with 499 additions and 331 deletions
				
			
		|  | @ -1,10 +1,10 @@ | |||
| import {User} from "./user.entity"; | ||||
| import {Collection, Entity, ManyToMany} from '@mikro-orm/core'; | ||||
| import {Class} from "../classes/class.entity"; | ||||
| import {Group} from "../assignments/group.entity"; | ||||
| import {StudentRepository} from "../../data/users/student-repository"; | ||||
| import { User } from './user.entity'; | ||||
| import { Collection, Entity, ManyToMany } from '@mikro-orm/core'; | ||||
| import { Class } from '../classes/class.entity'; | ||||
| import { Group } from '../assignments/group.entity'; | ||||
| import { StudentRepository } from '../../data/users/student-repository'; | ||||
| 
 | ||||
| @Entity({repository: () => StudentRepository}) | ||||
| @Entity({ repository: () => StudentRepository }) | ||||
| export class Student extends User { | ||||
|     @ManyToMany(() => Class) | ||||
|     classes!: Collection<Class>; | ||||
|  | @ -12,7 +12,11 @@ export class Student extends User { | |||
|     @ManyToMany(() => Group) | ||||
|     groups!: Collection<Group>; | ||||
| 
 | ||||
|     constructor(public username: string, public firstName: string, public lastName: string) { | ||||
|     constructor( | ||||
|         public username: string, | ||||
|         public firstName: string, | ||||
|         public lastName: string | ||||
|     ) { | ||||
|         super(); | ||||
|     } | ||||
| } | ||||
|  |  | |||
		Reference in a new issue
	
	 Gerald Schmittinger
						Gerald Schmittinger