style: fix linting issues met Prettier
This commit is contained in:
		
							parent
							
								
									a963cf472c
								
							
						
					
					
						commit
						c1e7c6c689
					
				
					 2 changed files with 14 additions and 11 deletions
				
			
		|  | @ -1,8 +1,8 @@ | |||
| import {Cascade, Collection, Entity, Enum, ManyToOne, OneToMany, PrimaryKey, Property} from '@mikro-orm/core'; | ||||
| import {Class} from '../classes/class.entity.js'; | ||||
| import {Group} from './group.entity.js'; | ||||
| import {Language} from '@dwengo-1/common/util/language'; | ||||
| import {AssignmentRepository} from '../../data/assignments/assignment-repository.js'; | ||||
| import { Cascade, Collection, Entity, Enum, ManyToOne, OneToMany, PrimaryKey, Property } from '@mikro-orm/core'; | ||||
| import { Class } from '../classes/class.entity.js'; | ||||
| import { Group } from './group.entity.js'; | ||||
| import { Language } from '@dwengo-1/common/util/language'; | ||||
| import { AssignmentRepository } from '../../data/assignments/assignment-repository.js'; | ||||
| 
 | ||||
| @Entity({ | ||||
|     repository: () => AssignmentRepository, | ||||
|  | @ -34,7 +34,7 @@ export class Assignment { | |||
|     @OneToMany({ | ||||
|         entity: () => Group, | ||||
|         mappedBy: 'assignment', | ||||
|         cascade: [Cascade.ALL] | ||||
|         cascade: [Cascade.ALL], | ||||
|     }) | ||||
|     groups: Collection<Group> = new Collection<Group>(this); | ||||
| } | ||||
|  |  | |||
|  | @ -50,7 +50,7 @@ | |||
|             }), | ||||
|         ); | ||||
| 
 | ||||
|         return result.flat().filter(a => !deletedAssignments.value.has(a.id)); | ||||
|         return result.flat().filter((a) => !deletedAssignments.value.has(a.id)); | ||||
|     }, []); | ||||
| 
 | ||||
|     async function goToCreateAssignment(): Promise<void> { | ||||
|  | @ -64,11 +64,14 @@ | |||
|     const { mutate } = useDeleteAssignmentMutation(); | ||||
| 
 | ||||
|     async function goToDeleteAssignment(num: number, clsId: string): Promise<void> { | ||||
|         mutate({ cid: clsId, an: num }, { | ||||
|         mutate( | ||||
|             { cid: clsId, an: num }, | ||||
|             { | ||||
|                 onSuccess: () => { | ||||
|                     deletedAssignments.value.add(num); | ||||
|                 }, | ||||
|         }); | ||||
|             }, | ||||
|         ); | ||||
|     } | ||||
| 
 | ||||
|     onMounted(async () => { | ||||
|  |  | |||
		Reference in a new issue
	
	 Lint Action
						Lint Action