mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-11-26 17:44:54 +00:00
fix delete scene issue
This commit is contained in:
@ -459,6 +459,7 @@ export class SceneService {
|
|||||||
const space = await this.getSpaceByUuid(scene.spaceUuid);
|
const space = await this.getSpaceByUuid(scene.spaceUuid);
|
||||||
|
|
||||||
await this.delete(scene.sceneTuyaUuid, space.spaceTuyaUuid);
|
await this.delete(scene.sceneTuyaUuid, space.spaceTuyaUuid);
|
||||||
|
await this.sceneRepository.delete({ uuid: sceneUuid });
|
||||||
return new SuccessResponseDto({
|
return new SuccessResponseDto({
|
||||||
message: `Scene with ID ${sceneUuid} deleted successfully`,
|
message: `Scene with ID ${sceneUuid} deleted successfully`,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user