From 05eab47481590c369651f59d70552c5d589f3b86 Mon Sep 17 00:00:00 2001 From: martintrajanovski Date: Thu, 12 Dec 2024 12:02:49 +0100 Subject: [PATCH] cleanup --- src/datasets/dto/create-dataset.dto.ts | 1 - src/datasets/pipes/include-validation.pipe.ts | 2 +- src/datasets/schemas/dataset.schema.ts | 1 - src/origdatablocks/dto/update-origdatablock.dto.ts | 2 +- 4 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/datasets/dto/create-dataset.dto.ts b/src/datasets/dto/create-dataset.dto.ts index a60c35c31..ebee8621c 100644 --- a/src/datasets/dto/create-dataset.dto.ts +++ b/src/datasets/dto/create-dataset.dto.ts @@ -1,7 +1,6 @@ import { IsOptional, IsString } from "class-validator"; import { ApiProperty } from "@nestjs/swagger"; import { UpdateDatasetDto } from "./update-dataset.dto"; -import { DatasetType } from "../types/dataset-type.enum"; export class CreateDatasetDto extends UpdateDatasetDto { @ApiProperty({ diff --git a/src/datasets/pipes/include-validation.pipe.ts b/src/datasets/pipes/include-validation.pipe.ts index 9e218783b..a3b295acd 100644 --- a/src/datasets/pipes/include-validation.pipe.ts +++ b/src/datasets/pipes/include-validation.pipe.ts @@ -5,7 +5,7 @@ import { DATASET_LOOKUP_FIELDS } from "src/datasets/types/dataset-lookup"; function isJsonString(str: string) { try { JSON.parse(str); - } catch (e) { + } catch { return false; } return true; diff --git a/src/datasets/schemas/dataset.schema.ts b/src/datasets/schemas/dataset.schema.ts index 5fb49a8b5..59b42e27c 100644 --- a/src/datasets/schemas/dataset.schema.ts +++ b/src/datasets/schemas/dataset.schema.ts @@ -3,7 +3,6 @@ import { ApiProperty, getSchemaPath } from "@nestjs/swagger"; import { Document } from "mongoose"; import { OwnableClass } from "src/common/schemas/ownable.schema"; import { v4 as uuidv4 } from "uuid"; -import { DatasetType } from "../types/dataset-type.enum"; import { HistoryClass, HistorySchema } from "./history.schema"; import { LifecycleClass, LifecycleSchema } from "./lifecycle.schema"; import { RelationshipClass, RelationshipSchema } from "./relationship.schema"; diff --git a/src/origdatablocks/dto/update-origdatablock.dto.ts b/src/origdatablocks/dto/update-origdatablock.dto.ts index 14c9c9481..560e335a6 100644 --- a/src/origdatablocks/dto/update-origdatablock.dto.ts +++ b/src/origdatablocks/dto/update-origdatablock.dto.ts @@ -1,4 +1,4 @@ -import { ApiProperty, getSchemaPath, PartialType } from "@nestjs/swagger"; +import { ApiProperty, PartialType } from "@nestjs/swagger"; import { OwnableDto } from "../../common/dto/ownable.dto"; import { ArrayNotEmpty,