From 786c56524cca124faa45d3d021967f8fdf6039a0 Mon Sep 17 00:00:00 2001 From: hannathkadher Date: Fri, 20 Dec 2024 10:43:20 +0400 Subject: [PATCH] makew project-community relation not nullable --- libs/common/src/modules/community/entities/community.entity.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/common/src/modules/community/entities/community.entity.ts b/libs/common/src/modules/community/entities/community.entity.ts index 8809f94..a94e586 100644 --- a/libs/common/src/modules/community/entities/community.entity.ts +++ b/libs/common/src/modules/community/entities/community.entity.ts @@ -34,7 +34,7 @@ export class CommunityEntity extends AbstractEntity { externalId: string; @ManyToOne(() => ProjectEntity, (project) => project.communities, { - nullable: true, + nullable: false, }) project: ProjectEntity; }