mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-10 15:17:41 +00:00
typo fix
This commit is contained in:
@ -12,6 +12,7 @@ import {
|
||||
SpaceEntity,
|
||||
SpaceLinkEntity,
|
||||
SubspaceEntity,
|
||||
SubspaceProductAllocationEntity,
|
||||
TagEntity,
|
||||
} from '../modules/space/entities';
|
||||
import { UserSpaceEntity } from '../modules/user/entities';
|
||||
@ -31,6 +32,8 @@ import {
|
||||
SpaceModelEntity,
|
||||
SubspaceModelEntity,
|
||||
TagModel,
|
||||
SpaceModelProductAllocationEntity,
|
||||
SubspaceModelProductAllocationEntity,
|
||||
} from '../modules/space-model/entities';
|
||||
import {
|
||||
InviteUserEntity,
|
||||
@ -38,6 +41,8 @@ import {
|
||||
} from '../modules/Invite-user/entities';
|
||||
import { InviteSpaceEntity } from '../modules/space/entities/invite-space.entity';
|
||||
import { AutomationEntity } from '../modules/automation/entities';
|
||||
import { SpaceProductAllocationEntity } from '../modules/space/entities/space-product-allocation.entity';
|
||||
import { NewTagEntity } from '../modules/tag';
|
||||
@Module({
|
||||
imports: [
|
||||
TypeOrmModule.forRootAsync({
|
||||
@ -84,6 +89,11 @@ import { AutomationEntity } from '../modules/automation/entities';
|
||||
InviteUserSpaceEntity,
|
||||
InviteSpaceEntity,
|
||||
AutomationEntity,
|
||||
SpaceModelProductAllocationEntity,
|
||||
SubspaceModelProductAllocationEntity,
|
||||
SpaceProductAllocationEntity,
|
||||
SubspaceProductAllocationEntity,
|
||||
NewTagEntity,
|
||||
],
|
||||
namingStrategy: new SnakeNamingStrategy(),
|
||||
synchronize: Boolean(JSON.parse(configService.get('DB_SYNC'))),
|
||||
|
@ -4,7 +4,7 @@ import { ProjectEntity } from '../../project/entities';
|
||||
import { AbstractEntity } from '../../abstract/entities/abstract.entity';
|
||||
import { NewTagDto } from '../dtos/tag.dto';
|
||||
import { SpaceModelProductAllocationEntity } from '../../space-model/entities/space-model-product-allocation.entity';
|
||||
import { SubspaceProductAllocation } from '../../space';
|
||||
import { SubspaceProductAllocationEntity } from '../../space';
|
||||
|
||||
@Entity({ name: 'tag' })
|
||||
@Unique(['name', 'project'])
|
||||
@ -38,10 +38,10 @@ export class NewTagEntity extends AbstractEntity<NewTagDto> {
|
||||
public spaceModelAllocations: SpaceModelProductAllocationEntity[];
|
||||
|
||||
@OneToMany(
|
||||
() => SubspaceProductAllocation,
|
||||
() => SubspaceProductAllocationEntity,
|
||||
(allocation) => allocation.allowedTags,
|
||||
)
|
||||
public subspaceAllocations: SubspaceProductAllocation[];
|
||||
public subspaceAllocations: SubspaceProductAllocationEntity[];
|
||||
|
||||
constructor(partial: Partial<NewTagEntity>) {
|
||||
super();
|
||||
|
Reference in New Issue
Block a user