fixed space name

This commit is contained in:
hannathkadher
2024-10-21 10:34:55 +04:00
parent 50cc6ed38f
commit 581618296d
2 changed files with 1 additions and 7 deletions

View File

@ -26,8 +26,6 @@ export class SpaceTypeEntity extends AbstractEntity<SpaceTypeDto> {
})
type: string;
@OneToMany(() => SpaceEntity, (space) => space.spaceType)
spaces: SpaceEntity[];
constructor(partial: Partial<SpaceTypeEntity>) {
super();
Object.assign(this, partial);
@ -69,10 +67,6 @@ export class SpaceEntity extends AbstractEntity<SpaceDto> {
@OneToMany(() => SpaceEntity, (space) => space.parent)
children: SpaceEntity[];
@ManyToOne(() => SpaceTypeEntity, (spaceType) => spaceType.spaces, {
nullable: false,
})
spaceType: SpaceTypeEntity;
@OneToMany(() => UserSpaceEntity, (userSpace) => userSpace.space)
userSpaces: UserSpaceEntity[];