diff --git a/src/shared/infrastructure/http/models/BaseController.ts b/src/shared/infrastructure/http/models/BaseController.ts index 50fab79f..82fb99b2 100644 --- a/src/shared/infrastructure/http/models/BaseController.ts +++ b/src/shared/infrastructure/http/models/BaseController.ts @@ -28,7 +28,7 @@ export abstract class BaseController { } public ok(res: express.Response, dto?: T) { - if (!!dto) { + if (dto) { res.type('application/json'); return res.status(200).json(dto); } else {