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