Skip to content

Commit

Permalink
Merge pull request #65 from Tonomy-Foundation/feature/58-zap-api-scan…
Browse files Browse the repository at this point in the history
…-passes-v2

Feature/58 zap api scan passes v2
  • Loading branch information
theblockstalk authored Aug 23, 2023
2 parents 4336388 + 940ca3e commit 929d2a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/app.controller.ts
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/app.service.ts
Original file line number Diff line number Diff line change
@@ -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: {
Expand Down

0 comments on commit 929d2a7

Please sign in to comment.