From 573eb4cff4f618d0f8e025973aa7631b3ee66c70 Mon Sep 17 00:00:00 2001 From: Karlen Date: Wed, 6 Nov 2024 23:55:12 +0300 Subject: [PATCH] Fix end of lines --- .../libs/rest/middleware/document-exists.middleware.ts | 6 +++++- src/shared/modules/offer/offer.controller.ts | 5 ++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/shared/libs/rest/middleware/document-exists.middleware.ts b/src/shared/libs/rest/middleware/document-exists.middleware.ts index 303e580..0b44316 100644 --- a/src/shared/libs/rest/middleware/document-exists.middleware.ts +++ b/src/shared/libs/rest/middleware/document-exists.middleware.ts @@ -12,7 +12,11 @@ export class DocumentExistsMiddleware implements Middleware { private readonly paramName: string ) {} - public async execute({ params }: Request, _response: Response, next: NextFunction): Promise { + public async execute( + { params }: Request, + _response: Response, + next: NextFunction + ): Promise { const documentId = params[this.paramName]; const exists = await this.service.exists(documentId); diff --git a/src/shared/modules/offer/offer.controller.ts b/src/shared/modules/offer/offer.controller.ts index 5b9f1bc..c74f872 100644 --- a/src/shared/modules/offer/offer.controller.ts +++ b/src/shared/modules/offer/offer.controller.ts @@ -188,7 +188,10 @@ export class OfferController extends BaseController { { params, tokenPayload }: Request, response: Response ) { - const offers = await this.offerService.findPremiumByCity(params?.city as City, tokenPayload?.id); + const offers = await this.offerService.findPremiumByCity( + params?.city as City, + tokenPayload?.id + ); this.ok(response, fillDTO(OfferRdo, offers)); }