style: fix linting issues met Prettier
This commit is contained in:
		
							parent
							
								
									4928c08f62
								
							
						
					
					
						commit
						6a86539cc9
					
				
					 2 changed files with 5 additions and 5 deletions
				
			
		|  | @ -22,7 +22,7 @@ export async function fetchAssignment(classid: string, assignmentNumber: number) | |||
|     const cls = await classRepository.findById(classid); | ||||
| 
 | ||||
|     if (!cls) { | ||||
|         throw new NotFoundException('Could not find assignment\'s class'); | ||||
|         throw new NotFoundException("Could not find assignment's class"); | ||||
|     } | ||||
| 
 | ||||
|     const assignmentRepository = getAssignmentRepository(); | ||||
|  | @ -86,7 +86,7 @@ export async function deleteAssignment(classid: string, id: number): Promise<Ass | |||
| export async function getAssignmentsSubmissions( | ||||
|     classid: string, | ||||
|     assignmentNumber: number, | ||||
|     full: boolean, | ||||
|     full: boolean | ||||
| ): Promise<SubmissionDTO[] | SubmissionDTOId[]> { | ||||
|     const assignment = await fetchAssignment(classid, assignmentNumber); | ||||
| 
 | ||||
|  |  | |||
|  | @ -31,7 +31,7 @@ export async function putGroup( | |||
|     classId: string, | ||||
|     assignmentNumber: number, | ||||
|     groupNumber: number, | ||||
|     groupData: Partial<EntityDTO<Group>>, | ||||
|     groupData: Partial<EntityDTO<Group>> | ||||
| ): Promise<GroupDTO> { | ||||
|     const group = await fetchGroup(classId, assignmentNumber, groupNumber); | ||||
| 
 | ||||
|  | @ -63,7 +63,7 @@ export async function createGroup(groupData: GroupDTO, classid: string, assignme | |||
| 
 | ||||
|     const memberUsernames = (groupData.members as string[]) || []; | ||||
|     const members = (await Promise.all([...memberUsernames].map(async (id) => studentRepository.findByUsername(id)))).filter( | ||||
|         (student) => student !== null, | ||||
|         (student) => student !== null | ||||
|     ); | ||||
| 
 | ||||
|     const assignment = await fetchAssignment(classid, assignmentNumber); | ||||
|  | @ -95,7 +95,7 @@ export async function getGroupSubmissions( | |||
|     classId: string, | ||||
|     assignmentNumber: number, | ||||
|     groupNumber: number, | ||||
|     full: boolean, | ||||
|     full: boolean | ||||
| ): Promise<SubmissionDTO[] | SubmissionDTOId[]> { | ||||
|     const group = await fetchGroup(classId, assignmentNumber, groupNumber); | ||||
| 
 | ||||
|  |  | |||
		Reference in a new issue
	
	 Lint Action
						Lint Action