From 02064cba393b4d9b342579aba28ebea3479dbe9e Mon Sep 17 00:00:00 2001 From: ashkuc Date: Thu, 7 Mar 2024 14:07:20 +0100 Subject: [PATCH] fixed collection.potential_attributes and token.attributes GraphQL types --- apps/web-api/src/collection/collection.dto.ts | 2 +- apps/web-api/src/tokens/token.dto.ts | 2 +- package-lock.json | 4 ++-- package.json | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/web-api/src/collection/collection.dto.ts b/apps/web-api/src/collection/collection.dto.ts index 1d84a46..a0c91b7 100644 --- a/apps/web-api/src/collection/collection.dto.ts +++ b/apps/web-api/src/collection/collection.dto.ts @@ -127,7 +127,7 @@ export class CollectionDTO implements Partial { @Field(() => GraphQLJSONObject, { nullable: true }) default_token_image?: object | null; - @Field(() => GraphQLJSONObject, { nullable: true }) + @Field(() => GraphQLJSON, { nullable: true }) potential_attributes?: any[]; @Field(() => GraphQLJSONObject, { nullable: true }) diff --git a/apps/web-api/src/tokens/token.dto.ts b/apps/web-api/src/tokens/token.dto.ts index 9780a20..290c157 100644 --- a/apps/web-api/src/tokens/token.dto.ts +++ b/apps/web-api/src/tokens/token.dto.ts @@ -86,7 +86,7 @@ export class SimpleTokenDTO implements Partial { @Field(() => GraphQLJSONObject, { nullable: true }) image_details?: object; - @Field(() => GraphQLJSONObject, { nullable: true }) + @Field(() => GraphQLJSON, { nullable: true }) attributes?: object[]; @Field(() => GraphQLJSONObject, { nullable: true }) diff --git a/package-lock.json b/package-lock.json index 2e0153f..bcdf6ac 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "polkastats-backend-uniquenetwork", - "version": "2.0.89", + "version": "2.0.90", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "polkastats-backend-uniquenetwork", - "version": "2.0.89", + "version": "2.0.90", "license": "UNLICENSED", "dependencies": { "@nestjs/apollo": "^10.1.7", diff --git a/package.json b/package.json index fc08d05..b438b5a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "polkastats-backend-uniquenetwork", - "version": "2.0.89", + "version": "2.0.90", "description": "", "author": "Unique Network Team", "private": true,