mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-11-26 21:54:54 +00:00
Remove unused UserEntity import and relationship in InviteSpaceEntity
This commit is contained in:
@ -1,7 +1,6 @@
|
|||||||
import { Column, Entity, ManyToOne, Unique } from 'typeorm';
|
import { Column, Entity, ManyToOne, Unique } from 'typeorm';
|
||||||
import { UserSpaceDto } from '../../user/dtos';
|
import { UserSpaceDto } from '../../user/dtos';
|
||||||
import { AbstractEntity } from '../../abstract/entities/abstract.entity';
|
import { AbstractEntity } from '../../abstract/entities/abstract.entity';
|
||||||
import { UserEntity } from '../../user/entities';
|
|
||||||
import { SpaceEntity } from './space.entity';
|
import { SpaceEntity } from './space.entity';
|
||||||
|
|
||||||
@Entity({ name: 'invite-space' })
|
@Entity({ name: 'invite-space' })
|
||||||
@ -14,9 +13,6 @@ export class InviteSpaceEntity extends AbstractEntity<UserSpaceDto> {
|
|||||||
})
|
})
|
||||||
public uuid: string;
|
public uuid: string;
|
||||||
|
|
||||||
@ManyToOne(() => UserEntity, (user) => user.userSpaces, { nullable: true })
|
|
||||||
user: UserEntity;
|
|
||||||
|
|
||||||
@ManyToOne(() => SpaceEntity, (space) => space.userSpaces, {
|
@ManyToOne(() => SpaceEntity, (space) => space.userSpaces, {
|
||||||
nullable: false,
|
nullable: false,
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user