From def7228f2b30dc5df031ffdee7ef3e8415e281f4 Mon Sep 17 00:00:00 2001 From: danielailie Date: Thu, 21 Sep 2023 15:44:48 +0300 Subject: [PATCH] cleanup --- schema.gql | 2 +- src/modules/analytics/models/analytics-aggregate-value.ts | 1 - src/modules/assets/models/Metadata.dto.ts | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/schema.gql b/schema.gql index 6ed86c4c1..5b7e84b37 100644 --- a/schema.gql +++ b/schema.gql @@ -824,7 +824,7 @@ input IssueCollectionArgs { type KeyValueType { key: String! - value: String + value: String! } type Marketplace { diff --git a/src/modules/analytics/models/analytics-aggregate-value.ts b/src/modules/analytics/models/analytics-aggregate-value.ts index 300ab6254..c59983011 100644 --- a/src/modules/analytics/models/analytics-aggregate-value.ts +++ b/src/modules/analytics/models/analytics-aggregate-value.ts @@ -1,6 +1,5 @@ import { Field, Float, Int, ObjectType } from '@nestjs/graphql'; import * as moment from 'moment'; -import { KeyValueType } from 'src/modules/assets/models'; @ObjectType() export class AnalyticsAggregateValue { diff --git a/src/modules/assets/models/Metadata.dto.ts b/src/modules/assets/models/Metadata.dto.ts index b275e3099..3f6fbb9de 100644 --- a/src/modules/assets/models/Metadata.dto.ts +++ b/src/modules/assets/models/Metadata.dto.ts @@ -78,7 +78,7 @@ export class AttributeType { export class KeyValueType { @Field() key: String; - @Field({ nullable: true }) + @Field() value: String; constructor(init?: Partial) { Object.assign(this, init);