mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-11-27 19:04:54 +00:00
added services
This commit is contained in:
@ -1,4 +1,4 @@
|
|||||||
import { QueryRunner } from 'typeorm';
|
import { In, QueryRunner } from 'typeorm';
|
||||||
import { HttpException, HttpStatus, Injectable } from '@nestjs/common';
|
import { HttpException, HttpStatus, Injectable } from '@nestjs/common';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
|
|||||||
@ -42,6 +42,8 @@ import { TuyaService } from '@app/common/integrations/tuya/services/tuya.service
|
|||||||
import { CommunityRepository } from '@app/common/modules/community/repositories';
|
import { CommunityRepository } from '@app/common/modules/community/repositories';
|
||||||
import { TagService as NewTagService } from 'src/tags/services/tags.service';
|
import { TagService as NewTagService } from 'src/tags/services/tags.service';
|
||||||
import { NewTagRepository } from '@app/common/modules/tag/repositories/tag-repository';
|
import { NewTagRepository } from '@app/common/modules/tag/repositories/tag-repository';
|
||||||
|
import { SpaceModelProductAllocationService } from './services/space-model-product-allocation.service';
|
||||||
|
import { SubspaceModelProductAllocationService } from './services/subspace/subspace-model-product-allocation.service';
|
||||||
|
|
||||||
const CommandHandlers = [
|
const CommandHandlers = [
|
||||||
PropogateUpdateSpaceModelHandler,
|
PropogateUpdateSpaceModelHandler,
|
||||||
@ -80,6 +82,9 @@ const CommandHandlers = [
|
|||||||
SpaceModelProductAllocationRepoitory,
|
SpaceModelProductAllocationRepoitory,
|
||||||
SubspaceModelProductAllocationRepoitory,
|
SubspaceModelProductAllocationRepoitory,
|
||||||
NewTagRepository,
|
NewTagRepository,
|
||||||
|
SpaceModelProductAllocationService,
|
||||||
|
SubspaceModelProductAllocationRepoitory,
|
||||||
|
SubspaceModelProductAllocationService,
|
||||||
],
|
],
|
||||||
exports: [CqrsModule, SpaceModelService],
|
exports: [CqrsModule, SpaceModelService],
|
||||||
})
|
})
|
||||||
|
|||||||
@ -75,6 +75,8 @@ import {
|
|||||||
import { AutomationRepository } from '@app/common/modules/automation/repositories';
|
import { AutomationRepository } from '@app/common/modules/automation/repositories';
|
||||||
import { TagService as NewTagService } from 'src/tags/services/tags.service';
|
import { TagService as NewTagService } from 'src/tags/services/tags.service';
|
||||||
import { NewTagRepository } from '@app/common/modules/tag/repositories/tag-repository';
|
import { NewTagRepository } from '@app/common/modules/tag/repositories/tag-repository';
|
||||||
|
import { SpaceModelProductAllocationService } from 'src/space-model/services/space-model-product-allocation.service';
|
||||||
|
import { SubspaceModelProductAllocationService } from 'src/space-model/services/subspace/subspace-model-product-allocation.service';
|
||||||
|
|
||||||
export const CommandHandlers = [DisableSpaceHandler];
|
export const CommandHandlers = [DisableSpaceHandler];
|
||||||
|
|
||||||
@ -139,6 +141,8 @@ export const CommandHandlers = [DisableSpaceHandler];
|
|||||||
SpaceModelProductAllocationRepoitory,
|
SpaceModelProductAllocationRepoitory,
|
||||||
SubspaceModelProductAllocationRepoitory,
|
SubspaceModelProductAllocationRepoitory,
|
||||||
NewTagRepository,
|
NewTagRepository,
|
||||||
|
SpaceModelProductAllocationService,
|
||||||
|
SubspaceModelProductAllocationService,
|
||||||
],
|
],
|
||||||
exports: [SpaceService],
|
exports: [SpaceService],
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user