From 8a759aca354add9b887cbe0b4ac926bbee18d794 Mon Sep 17 00:00:00 2001 From: faris Aljohari <83524184+farisaljohari@users.noreply.github.com> Date: Tue, 2 Apr 2024 17:30:31 +0300 Subject: [PATCH] Refactor GetCommunityByUuidInterface --- src/community/interface/community.interface.ts | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/community/interface/community.interface.ts b/src/community/interface/community.interface.ts index 50fe78a..b0f491e 100644 --- a/src/community/interface/community.interface.ts +++ b/src/community/interface/community.interface.ts @@ -2,11 +2,13 @@ export interface GetCommunityByUuidInterface { uuid: string; createdAt: Date; updatedAt: Date; - spaceName: string; - spaceType: { - uuid: string; - createdAt: Date; - updatedAt: Date; - type: string; - }; + name: string; + type: string; +} + +export interface CommunityChildInterface { + uuid: string; + name: string; + type: string; + children?: CommunityChildInterface[]; }