Skip to content

Commit

Permalink
Merge pull request #15 from Karlen-ll/master
Browse files Browse the repository at this point in the history
  • Loading branch information
keksobot authored Nov 6, 2024
2 parents 0889611 + 573eb4c commit b317bce
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ export class DocumentExistsMiddleware implements Middleware {
private readonly paramName: string
) {}

public async execute({ params }: Request, _response: Response, next: NextFunction): Promise<void> {
public async execute(
{ params }: Request,
_response: Response,
next: NextFunction
): Promise<void> {
const documentId = params[this.paramName];
const exists = await this.service.exists(documentId);

Expand Down
5 changes: 4 additions & 1 deletion src/shared/modules/offer/offer.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,10 @@ export class OfferController extends BaseController {
{ params, tokenPayload }: Request<ParamCity>,
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));
}
Expand Down

0 comments on commit b317bce

Please sign in to comment.