diff --git a/src/app.controller.ts b/src/app.controller.ts index fc756ac..d9aa321 100644 --- a/src/app.controller.ts +++ b/src/app.controller.ts @@ -1,6 +1,7 @@ import { Controller, Get, HttpStatus, Res } from '@nestjs/common'; import { AppService } from './app.service'; import { ApiOperation, ApiResponse } from '@nestjs/swagger'; +import { Response } from 'express'; @Controller() export class AppController { diff --git a/src/app.service.ts b/src/app.service.ts index 9418bed..c9d7a4c 100644 --- a/src/app.service.ts +++ b/src/app.service.ts @@ -1,9 +1,9 @@ import { HttpStatus, Injectable } from '@nestjs/common'; +import { Response } from 'express'; @Injectable() export class AppService { healthCheck(res: Response) { - // @ts-expect-error status() is not callable res.status(HttpStatus.OK).send({ status: 'ok', info: {