style: fix linting issues met Prettier
This commit is contained in:
		
							parent
							
								
									56d34adbc0
								
							
						
					
					
						commit
						7ad808cf3b
					
				
					 34 changed files with 244 additions and 214 deletions
				
			
		|  | @ -1,9 +1,9 @@ | |||
| import {EntityRepository, FilterQuery} from '@mikro-orm/core'; | ||||
| import {EntityAlreadyExistsException} from "../exceptions/entity-already-exists-exception"; | ||||
| import { EntityRepository, FilterQuery } from '@mikro-orm/core'; | ||||
| import { EntityAlreadyExistsException } from '../exceptions/entity-already-exists-exception'; | ||||
| 
 | ||||
| export abstract class DwengoEntityRepository<T extends object> extends EntityRepository<T> { | ||||
|     public async save(entity: T, options?: {preventOverwrite?: boolean}): Promise<void> { | ||||
|         if (options?.preventOverwrite && await this.findOne(entity)) { | ||||
|     public async save(entity: T, options?: { preventOverwrite?: boolean }): Promise<void> { | ||||
|         if (options?.preventOverwrite && (await this.findOne(entity))) { | ||||
|             throw new EntityAlreadyExistsException(`A ${this.getEntityName()} with this identifier already exists.`); | ||||
|         } | ||||
|         await this.getEntityManager().persistAndFlush(entity); | ||||
|  |  | |||
		Reference in a new issue
	
	 Lint Action
						Lint Action