From 5d6ceabf05b58a5377a2dd33d7a9fc41848b277a Mon Sep 17 00:00:00 2001 From: Harman-singh-waraich Date: Mon, 3 Feb 2025 23:28:13 +0530 Subject: [PATCH] fix(cms): one-to-many-token-stats --- .../api/home-page-hero/content-types/home-page-hero/schema.json | 2 +- cms-backend/types/generated/contentTypes.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cms-backend/src/api/home-page-hero/content-types/home-page-hero/schema.json b/cms-backend/src/api/home-page-hero/content-types/home-page-hero/schema.json index 575e8e1..a960936 100644 --- a/cms-backend/src/api/home-page-hero/content-types/home-page-hero/schema.json +++ b/cms-backend/src/api/home-page-hero/content-types/home-page-hero/schema.json @@ -46,7 +46,7 @@ }, "tokenStats": { "type": "relation", - "relation": "oneToOne", + "relation": "oneToMany", "target": "api::token-stat.token-stat" } } diff --git a/cms-backend/types/generated/contentTypes.d.ts b/cms-backend/types/generated/contentTypes.d.ts index 961dfc8..b335305 100644 --- a/cms-backend/types/generated/contentTypes.d.ts +++ b/cms-backend/types/generated/contentTypes.d.ts @@ -1693,7 +1693,7 @@ export interface ApiHomePageHeroHomePageHero extends Struct.SingleTypeSchema { subtitle: Schema.Attribute.String; title: Schema.Attribute.String; tokenStats: Schema.Attribute.Relation< - 'oneToOne', + 'oneToMany', 'api::token-stat.token-stat' >; updatedAt: Schema.Attribute.DateTime;