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 { Cascade, Collection, Entity, Enum, ManyToOne, OneToMany, PrimaryKey, Property } from '@mikro-orm/core'; | ||||||
| import {Class} from '../classes/class.entity.js'; | import { Class } from '../classes/class.entity.js'; | ||||||
| import {Group} from './group.entity.js'; | import { Group } from './group.entity.js'; | ||||||
| import {Language} from '@dwengo-1/common/util/language'; | import { Language } from '@dwengo-1/common/util/language'; | ||||||
| import {AssignmentRepository} from '../../data/assignments/assignment-repository.js'; | import { AssignmentRepository } from '../../data/assignments/assignment-repository.js'; | ||||||
| 
 | 
 | ||||||
| @Entity({ | @Entity({ | ||||||
|     repository: () => AssignmentRepository, |     repository: () => AssignmentRepository, | ||||||
|  | @ -34,7 +34,7 @@ export class Assignment { | ||||||
|     @OneToMany({ |     @OneToMany({ | ||||||
|         entity: () => Group, |         entity: () => Group, | ||||||
|         mappedBy: 'assignment', |         mappedBy: 'assignment', | ||||||
|         cascade: [Cascade.ALL] |         cascade: [Cascade.ALL], | ||||||
|     }) |     }) | ||||||
|     groups: Collection<Group> = new Collection<Group>(this); |     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> { |     async function goToCreateAssignment(): Promise<void> { | ||||||
|  | @ -64,11 +64,14 @@ | ||||||
|     const { mutate } = useDeleteAssignmentMutation(); |     const { mutate } = useDeleteAssignmentMutation(); | ||||||
| 
 | 
 | ||||||
|     async function goToDeleteAssignment(num: number, clsId: string): Promise<void> { |     async function goToDeleteAssignment(num: number, clsId: string): Promise<void> { | ||||||
|         mutate({ cid: clsId, an: num }, { |         mutate( | ||||||
|  |             { cid: clsId, an: num }, | ||||||
|  |             { | ||||||
|                 onSuccess: () => { |                 onSuccess: () => { | ||||||
|                     deletedAssignments.value.add(num); |                     deletedAssignments.value.add(num); | ||||||
|                 }, |                 }, | ||||||
|         }); |             }, | ||||||
|  |         ); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     onMounted(async () => { |     onMounted(async () => { | ||||||
|  |  | ||||||
		Reference in a new issue
	
	 Lint Action
						Lint Action