Skip to content

Commit

Permalink
Merge branch 'main' into j-s/subpoena-type-to-db-pt2
Browse files Browse the repository at this point in the history
  • Loading branch information
kodiakhq[bot] authored Jun 12, 2024
2 parents 9943a35 + 4862a0a commit c317aa4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libs/nest/swagger/src/lib/documentation.decorator.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { applyDecorators, HttpCode } from '@nestjs/common'
import {
ApiAcceptedResponse,
ApiBadRequestResponse,
ApiConflictResponse,
ApiCreatedResponse,
Expand Down Expand Up @@ -58,6 +59,8 @@ const getResponseDecorators = ({
ApiCreatedResponse(response),
ApiConflictResponse({ type: HttpProblemResponse }),
]
case 202:
return [ApiAcceptedResponse(response)]
case 204:
return [ApiNoContentResponse(response)]
default:
Expand Down

0 comments on commit c317aa4

Please sign in to comment.