From e11aa4c7512d3727db37c5054d887299a720b0d8 Mon Sep 17 00:00:00 2001 From: Adam Cooper Date: Fri, 5 Apr 2024 14:26:43 -0400 Subject: [PATCH] Committing before test --- src/cats/cats.service.ts | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/src/cats/cats.service.ts b/src/cats/cats.service.ts index dcbe17e..b72ee08 100644 --- a/src/cats/cats.service.ts +++ b/src/cats/cats.service.ts @@ -5,25 +5,25 @@ import { Cat } from "./cats.entity"; @Injectable() export class CatsService { - constructor( - @InjectRepository(Cat) - private catsRepository: Repository, - ) {} + constructor( + @InjectRepository(Cat) + private catsRepository: Repository, + ) { } - private readonly logger = new Logger(CatsService.name); + private readonly logger = new Logger(CatsService.name); - findAll(): Promise { - this.logger.log("[findAll] Starting..."); - return this.catsRepository.find(); - } + findAll(): Promise { + this.logger.log("[findAll] Starting..."); + return this.catsRepository.find(); + } - findOne(id: number): Promise { - this.logger.log("[findOne] Starting..."); - return this.catsRepository.findOneBy({ id }); - } + findOne(id: number): Promise { + this.logger.log("[findOne] Starting..."); + return this.catsRepository.findOneBy({ id }); + } - async remove(id: number): Promise { - this.logger.log("[remove] Starting..."); - await this.catsRepository.delete(id) - } + async remove(id: number): Promise { + this.logger.log("[remove] Starting..."); + await this.catsRepository.delete(id) + } }