fix: oplossing 2 voor seeden geimplementeerd (zie comment op #184)
This commit is contained in:
		
							parent
							
								
									c6ce2e7e2c
								
							
						
					
					
						commit
						5f1249bd78
					
				
					 3 changed files with 9 additions and 11 deletions
				
			
		|  | @ -35,9 +35,6 @@ export async function seedDatabase(): Promise<void> { | |||
|     const classes = makeTestClasses(em, students, teachers); | ||||
|     const assignments = makeTestAssignemnts(em, classes); | ||||
| 
 | ||||
|     /* Wegens een probleem met het aanmaken van groups werd deze code even in commentaar gezet */ | ||||
| 
 | ||||
|     /* | ||||
|     const groups = makeTestGroups(em, students, assignments); | ||||
| 
 | ||||
|     assignments[0].groups = new Collection<Group>(groups.slice(0, 3)); | ||||
|  | @ -52,7 +49,6 @@ export async function seedDatabase(): Promise<void> { | |||
|     const questions = makeTestQuestions(em, students, groups); | ||||
|     const answers = makeTestAnswers(em, teachers, questions); | ||||
|     const submissions = makeTestSubmissions(em, students, groups); | ||||
|     */ | ||||
| 
 | ||||
|     // Persist all entities
 | ||||
|     await em.persistAndFlush([ | ||||
|  | @ -62,7 +58,6 @@ export async function seedDatabase(): Promise<void> { | |||
|         ...learningPaths, | ||||
|         ...classes, | ||||
|         ...assignments, | ||||
|         /* | ||||
|         ...groups, | ||||
|         ...teacherInvitations, | ||||
|         ...classJoinRequests, | ||||
|  | @ -70,7 +65,6 @@ export async function seedDatabase(): Promise<void> { | |||
|         ...questions, | ||||
|         ...answers, | ||||
|         ...submissions, | ||||
|         */ | ||||
|     ]); | ||||
| 
 | ||||
|     logger.info('Development database seeded successfully!'); | ||||
|  |  | |||
		Reference in a new issue
	
	 Adriaan Jacquet
						Adriaan Jacquet