style: fix linting issues met ESLint
This commit is contained in:
		
							parent
							
								
									4e6f7ccb3d
								
							
						
					
					
						commit
						b963101f62
					
				
					 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({ | ||||
|             learningObjectHruid: loId.hruid, | ||||
|             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( | ||||
|             { | ||||
|                 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({ | ||||
|             author: assignment.groups.flatMap(group => group.members), | ||||
|             learningObjectHruid: assignment.learningPathHruid, | ||||
|  |  | |||
|  | @ -25,7 +25,7 @@ export function mapToAssignmentDTO(assignment: Assignment): AssignmentDTO { | |||
|         description: assignment.description, | ||||
|         learningPath: assignment.learningPathHruid, | ||||
|         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. | ||||
|  */ | ||||
| export async function putObject<T extends Object, DTO>( | ||||
| export async function putObject<T extends object, DTO>( | ||||
|     object: T,  | ||||
|     data: Partial<EntityDTO<FromEntityType<T>>>,  | ||||
|     repo: DwengoEntityRepository<T> | ||||
|  |  | |||
		Reference in a new issue
	
	 Lint Action
						Lint Action