Skip to content

Commit 9b56fe8

Browse files
committed
fix some POST /taxa aggregate return codes (201 -> 200)
1 parent 1c04ec0 commit 9b56fe8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/taxa/taxa.controller.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ export class TaxaController {
166166
jsonLdContext: "taxon-elastic",
167167
customizeRequestBodySchema: addFiltersSchema
168168
})
169+
@HttpCode(200)
169170
getSpeciesAggregateWithFilters(@Query() query: GetTaxaAggregateDto, @Body() filters?: TaxaFilters) {
170171
return this.taxaService.getSpeciesAggregate(query, filters);
171172
}
@@ -255,6 +256,7 @@ export class TaxaController {
255256
jsonLdContext: "taxon-elastic",
256257
customizeRequestBodySchema: addFiltersSchema
257258
})
259+
@HttpCode(200)
258260
getTaxonSpeciesAggregateWithFilters(
259261
@Param("id") id: string,
260262
@Query() query: GetTaxaAggregateDto,

0 commit comments

Comments
 (0)