fix: fixed linter issues
This commit is contained in:
		
							parent
							
								
									283c2e6f78
								
							
						
					
					
						commit
						f35802f3c3
					
				
					 3 changed files with 2 additions and 5 deletions
				
			
		|  | @ -3,8 +3,6 @@ import { createGroup, deleteGroup, getAllGroups, getGroup, getGroupSubmissions, | |||
| import { GroupDTO } from '@dwengo-1/common/interfaces/group'; | ||||
| import { requireFields } from './error-helper.js'; | ||||
| import { BadRequestException } from '../exceptions/bad-request-exception.js'; | ||||
| import { EntityDTO } from '@mikro-orm/core'; | ||||
| import { Group } from '../entities/assignments/group.entity.js'; | ||||
| 
 | ||||
| function checkGroupFields(classId: string, assignmentId: number, groupId: number): void { | ||||
|     requireFields({ classId, assignmentId, groupId }); | ||||
|  | @ -35,7 +33,7 @@ export async function putGroupHandler(req: Request, res: Response): Promise<void | |||
|     const groupId = parseInt(req.params.groupid); | ||||
|     checkGroupFields(classId, assignmentId, groupId); | ||||
| 
 | ||||
|     // only members field can be changed
 | ||||
|     // Only members field can be changed
 | ||||
|     const members = req.body.members; | ||||
|     requireFields({ members }); | ||||
| 
 | ||||
|  |  | |||
|  | @ -7,7 +7,6 @@ import { GroupDTO, GroupDTOId } from '@dwengo-1/common/interfaces/group'; | |||
| import { SubmissionDTO, SubmissionDTOId } from '@dwengo-1/common/interfaces/submission'; | ||||
| import { fetchAssignment } from './assignments.js'; | ||||
| import { NotFoundException } from '../exceptions/not-found-exception.js'; | ||||
| import { putObject } from './service-helper.js'; | ||||
| import { fetchStudents } from './students.js'; | ||||
| import { fetchClass } from './classes.js'; | ||||
| import { BadRequestException } from '../exceptions/bad-request-exception.js'; | ||||
|  |  | |||
|  | @ -11,7 +11,7 @@ | |||
|     const { t, locale } = useI18n(); | ||||
| 
 | ||||
|     const role = auth.authState.activeRole; | ||||
|     const router = useRouter(); | ||||
|     const _router = useRouter(); // Zonder '_' gaf dit een linter error voor unused variable | ||||
| 
 | ||||
|     const name: string = auth.authState.user!.profile.name!; | ||||
|     const initials: string = name | ||||
|  |  | |||
		Reference in a new issue
	
	 Adriaan Jacquet
						Adriaan Jacquet