From a7c9280bdc0b8964a844a6661954fbd332d5729c Mon Sep 17 00:00:00 2001 From: HayenNico <141850426+HayenNico@users.noreply.github.com> Date: Tue, 26 Nov 2024 19:48:25 +0100 Subject: [PATCH] fix: dataset create endpoint details --- src/datasets/datasets.controller.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/datasets/datasets.controller.ts b/src/datasets/datasets.controller.ts index d1bb48a18..67d57d411 100644 --- a/src/datasets/datasets.controller.ts +++ b/src/datasets/datasets.controller.ts @@ -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.", }) @@ -633,7 +633,7 @@ export class DatasetsController { if ( outputDatasetDto instanceof - (CreateRawDatasetObsoleteDto || CreateDerivedDatasetObsoleteDto) + (CreateRawDatasetObsoleteDto || CreateDerivedDatasetObsoleteDto || CreateDatasetDto) ) { if ( !(Object.values(configuration().datasetTypes) as string[]).includes( @@ -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, );