mirror of
https://github.com/SyncrowIOT/backend.git
synced 2026-10-23 14:47:55 +00:00
added delete scene from database
This commit is contained in:
@@ -449,6 +449,9 @@ export class SceneService {
|
||||
const space = await this.getSpaceByUuid(scene.spaceUuid);
|
||||
|
||||
await this.delete(scene.sceneTuyaUuid, space.spaceTuyaUuid);
|
||||
|
||||
await this.sceneRepository.remove(scene);
|
||||
|
||||
return new SuccessResponseDto({
|
||||
message: `Scene with ID ${sceneUuid} deleted successfully`,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user