updated delete scene

This commit is contained in:
hannathkadher
2024-10-31 14:39:36 +04:00
parent 403a0174a9
commit 2b6168058a
4 changed files with 133 additions and 10 deletions
+3 -2
View File
@@ -60,14 +60,15 @@ export class SceneController {
@ApiBearerAuth()
@UseGuards(JwtAuthGuard)
@Delete('tap-to-run/:unitUuid/:sceneUuid')
@Delete('tap-to-run/:spaceUuid/:sceneUuid')
async deleteTapToRunScene(@Param() param: DeleteSceneParamDto) {
await this.sceneService.deleteTapToRunScene(param);
await this.sceneService.deleteScene(param);
return {
statusCode: HttpStatus.OK,
message: 'Scene Deleted Successfully',
};
}
@ApiBearerAuth()
@UseGuards(JwtAuthGuard)
@Post('tap-to-run/trigger/:sceneUuid')