Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-trajanovski committed Dec 12, 2024
1 parent 96ce2ea commit 05eab47
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/datasets/dto/create-dataset.dto.ts
Original file line number Diff line number Diff line change
@@ -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({
Expand Down
2 changes: 1 addition & 1 deletion src/datasets/pipes/include-validation.pipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion src/datasets/schemas/dataset.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion src/origdatablocks/dto/update-origdatablock.dto.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down

0 comments on commit 05eab47

Please sign in to comment.