fix: linter run
This commit is contained in:
		
							parent
							
								
									33f785ebc0
								
							
						
					
					
						commit
						81da765a74
					
				
					 4 changed files with 5 additions and 5 deletions
				
			
		|  | @ -17,7 +17,7 @@ export class SubmissionRepository extends DwengoEntityRepository<Submission> { | ||||||
|         }); |         }); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     public findByLearningObject(loId: LearningObjectIdentifier): Promise<Submission[]> { |     public async findByLearningObject(loId: LearningObjectIdentifier): Promise<Submission[]> { | ||||||
|         return this.find({ |         return this.find({ | ||||||
|             learningObjectHruid: loId.hruid, |             learningObjectHruid: loId.hruid, | ||||||
|             learningObjectLanguage: loId.language, |             learningObjectLanguage: loId.language, | ||||||
|  | @ -25,7 +25,7 @@ export class SubmissionRepository extends DwengoEntityRepository<Submission> { | ||||||
|         }); |         }); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     public findMostRecentSubmissionForStudent(loId: LearningObjectIdentifier, submitter: Student): Promise<Submission | null> { |     public async findMostRecentSubmissionForStudent(loId: LearningObjectIdentifier, submitter: Student): Promise<Submission | null> { | ||||||
|         return this.findOne( |         return this.findOne( | ||||||
|             { |             { | ||||||
|                 learningObjectHruid: loId.hruid, |                 learningObjectHruid: loId.hruid, | ||||||
|  |  | ||||||
|  | @ -56,7 +56,7 @@ export class QuestionRepository extends DwengoEntityRepository<Question> { | ||||||
|         }); |         }); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     public findAllByAssignment(assignment: Assignment): Promise<Question[]> { |     public async findAllByAssignment(assignment: Assignment): Promise<Question[]> { | ||||||
|         return this.find({ |         return this.find({ | ||||||
|             author: assignment.groups.flatMap(group => group.members), |             author: assignment.groups.flatMap(group => group.members), | ||||||
|             learningObjectHruid: assignment.learningPathHruid, |             learningObjectHruid: assignment.learningPathHruid, | ||||||
|  |  | ||||||
|  | @ -25,7 +25,7 @@ export function mapToAssignmentDTO(assignment: Assignment): AssignmentDTO { | ||||||
|         description: assignment.description, |         description: assignment.description, | ||||||
|         learningPath: assignment.learningPathHruid, |         learningPath: assignment.learningPathHruid, | ||||||
|         language: assignment.learningPathLanguage, |         language: assignment.learningPathLanguage, | ||||||
|         // groups: assignment.groups.map(mapToGroupDTO),
 |         // Groups: assignment.groups.map(mapToGroupDTO),
 | ||||||
|     }; |     }; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -10,7 +10,7 @@ import { DwengoEntityRepository } from "../data/dwengo-entity-repository"; | ||||||
|  *  |  *  | ||||||
|  * @returns Nothing. |  * @returns Nothing. | ||||||
|  */ |  */ | ||||||
| export async function putObject<T extends Object>( | export async function putObject<T extends object>( | ||||||
|     object: T,  |     object: T,  | ||||||
|     data: Partial<EntityDTO<FromEntityType<T>>>,  |     data: Partial<EntityDTO<FromEntityType<T>>>,  | ||||||
|     repo: DwengoEntityRepository<T> |     repo: DwengoEntityRepository<T> | ||||||
|  |  | ||||||
		Reference in a new issue
	
	 Adriaan Jacquet
						Adriaan Jacquet