added services

This commit is contained in:
hannathkadher
2025-02-25 23:16:00 +04:00
parent bcd976e1b2
commit cd8d368e21
3 changed files with 10 additions and 1 deletions

View File

@ -1,4 +1,4 @@
import { QueryRunner } from 'typeorm';
import { In, QueryRunner } from 'typeorm';
import { HttpException, HttpStatus, Injectable } from '@nestjs/common';
import {

View File

@ -42,6 +42,8 @@ import { TuyaService } from '@app/common/integrations/tuya/services/tuya.service
import { CommunityRepository } from '@app/common/modules/community/repositories';
import { TagService as NewTagService } from 'src/tags/services/tags.service';
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 = [
PropogateUpdateSpaceModelHandler,
@ -80,6 +82,9 @@ const CommandHandlers = [
SpaceModelProductAllocationRepoitory,
SubspaceModelProductAllocationRepoitory,
NewTagRepository,
SpaceModelProductAllocationService,
SubspaceModelProductAllocationRepoitory,
SubspaceModelProductAllocationService,
],
exports: [CqrsModule, SpaceModelService],
})

View File

@ -75,6 +75,8 @@ import {
import { AutomationRepository } from '@app/common/modules/automation/repositories';
import { TagService as NewTagService } from 'src/tags/services/tags.service';
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];
@ -139,6 +141,8 @@ export const CommandHandlers = [DisableSpaceHandler];
SpaceModelProductAllocationRepoitory,
SubspaceModelProductAllocationRepoitory,
NewTagRepository,
SpaceModelProductAllocationService,
SubspaceModelProductAllocationService,
],
exports: [SpaceService],
})