Skip to content

Commit

Permalink
fix: dataset create endpoint details
Browse files Browse the repository at this point in the history
  • Loading branch information
HayenNico committed Nov 26, 2024
1 parent f3777c0 commit a7c9280
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/datasets/datasets.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ export class DatasetsController {
)
@Post()
@ApiOperation({
summary: "It creates a new dataset which can be a raw or derived one.",
summary: "It creates a new dataset which can be a raw, derived or custom one.",
description:
"It creates a new dataset and returns it completed with systems fields.",
})
Expand Down Expand Up @@ -633,7 +633,7 @@ export class DatasetsController {

if (
outputDatasetDto instanceof
(CreateRawDatasetObsoleteDto || CreateDerivedDatasetObsoleteDto)
(CreateRawDatasetObsoleteDto || CreateDerivedDatasetObsoleteDto || CreateDatasetDto)
) {
if (
!(Object.values(configuration().datasetTypes) as string[]).includes(
Expand All @@ -643,7 +643,7 @@ export class DatasetsController {
throw new HttpException(
{
status: HttpStatus.BAD_REQUEST,
message: "Wrong dataset type!",
message: "Invalid dataset type!",
},
HttpStatus.BAD_REQUEST,
);
Expand Down

0 comments on commit a7c9280

Please sign in to comment.