style: fix linting issues met ESLint
This commit is contained in:
		
							parent
							
								
									ccacc69ed8
								
							
						
					
					
						commit
						e58835aa17
					
				
					 5 changed files with 9 additions and 11 deletions
				
			
		|  | @ -8,9 +8,7 @@ import { TeacherInvitationRepository } from '../../data/classes/teacher-invitati | |||
|  */ | ||||
| @Entity({ repository: () => TeacherInvitationRepository }) | ||||
| @Entity({ | ||||
|     repository: () => { | ||||
|         return TeacherInvitationRepository; | ||||
|     }, | ||||
|     repository: () => TeacherInvitationRepository, | ||||
| }) | ||||
| export class TeacherInvitation { | ||||
|     @ManyToOne({ | ||||
|  |  | |||
|  | @ -25,7 +25,7 @@ export class SqliteAutoincrementSubscriber implements EventSubscriber { | |||
|             return; // If there is not a composite primary key, autoincrement works fine with SQLite anyway.
 | ||||
|         } | ||||
| 
 | ||||
|         for (let prop of Object.values(args.meta.properties)) { | ||||
|         for (const prop of Object.values(args.meta.properties)) { | ||||
|             const property = prop as EntityProperty<T>; | ||||
|             if (property.primary && property.autoincrement && !(args.entity as Record<string, any>)[property.name]) { | ||||
|                 // Obtain and increment sequence number of this entity.
 | ||||
|  |  | |||
		Reference in a new issue
	
	 Lint Action
						Lint Action