Skip to content

Commit

Permalink
feat(DTFS2-7052): changed numeric status code 200 to HttpStatus.OK, b…
Browse files Browse the repository at this point in the history
…ut just in controller
  • Loading branch information
avaitonis committed May 13, 2024
1 parent 33c9e65 commit 3751992
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/geospatial/geospatial.controller.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Controller, Get, Query } from '@nestjs/common';
import { Controller, Get, HttpStatus, Query } from '@nestjs/common';
import { ApiNotFoundResponse, ApiOperation, ApiResponse, ApiTags } from '@nestjs/swagger';

import { GetAddressesByPostcodeQueryDto } from './dto/get-addresses-by-postcode-query.dto';
Expand All @@ -16,7 +16,7 @@ export class GeospatialController {
"A search based on a property's postcode. Will accept a full valid postcode. Returns addresses from Ordnance Survey Delivery Point Address (DPA) system.",
})
@ApiResponse({
status: 200,
status: HttpStatus.OK,
description: 'Returns simplified addresses that are ready to show to users.',
type: [GetAddressesResponseItem],
})
Expand Down

0 comments on commit 3751992

Please sign in to comment.