mirror of
https://github.com/SyncrowIOT/backend.git
synced 2026-10-24 20:17:55 +00:00
Merge branch 'dev' into feat/project-tag
This commit is contained in:
@@ -25,6 +25,7 @@ import { BaseResponseDto } from '@app/common/dto/base.response.dto';
|
||||
import { CommandBus } from '@nestjs/cqrs';
|
||||
import { ProcessTagDto } from 'src/tags/dtos';
|
||||
import { SpaceModelProductAllocationService } from './space-model-product-allocation.service';
|
||||
import { PropogateDeleteSpaceModelCommand } from '../commands';
|
||||
import {
|
||||
SpaceProductAllocationRepository,
|
||||
SpaceRepository,
|
||||
@@ -283,6 +284,13 @@ export class SpaceModelService {
|
||||
{ disabled: true },
|
||||
);
|
||||
|
||||
await this.commandBus.execute(
|
||||
new PropogateDeleteSpaceModelCommand({
|
||||
spaceModel: spaceModel,
|
||||
queryRunner,
|
||||
}),
|
||||
);
|
||||
|
||||
await queryRunner.commitTransaction();
|
||||
|
||||
return new SuccessResponseDto({
|
||||
|
||||
Reference in New Issue
Block a user