mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-16 02:36:19 +00:00
fixed space name
This commit is contained in:
@ -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[];
|
||||
|
Reference in New Issue
Block a user