mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-16 10:46:17 +00:00
updated space scee endpoint to match project entity
This commit is contained in:
@ -182,7 +182,7 @@ export class ControllerRoute {
|
|||||||
|
|
||||||
static SPACE_SCENE = class {
|
static SPACE_SCENE = class {
|
||||||
public static readonly ROUTE =
|
public static readonly ROUTE =
|
||||||
'/communities/:communityUuid/spaces/:spaceUuid/scenes';
|
'/projects/:projectUuid/communities/:communityUuid/spaces/:spaceUuid/scenes';
|
||||||
static ACTIONS = class {
|
static ACTIONS = class {
|
||||||
public static readonly GET_TAP_TO_RUN_SCENE_BY_SPACE_SUMMARY =
|
public static readonly GET_TAP_TO_RUN_SCENE_BY_SPACE_SUMMARY =
|
||||||
'Retrieve Tap-to-Run Scenes by Space';
|
'Retrieve Tap-to-Run Scenes by Space';
|
||||||
|
@ -18,11 +18,12 @@ export class SpaceSceneService {
|
|||||||
getSceneDto: GetSceneDto,
|
getSceneDto: GetSceneDto,
|
||||||
): Promise<BaseResponseDto> {
|
): Promise<BaseResponseDto> {
|
||||||
try {
|
try {
|
||||||
const { spaceUuid, communityUuid } = params;
|
const { spaceUuid, communityUuid, projectUuid } = params;
|
||||||
|
|
||||||
await this.spaceSevice.validateCommunityAndSpace(
|
await this.spaceSevice.validateCommunityAndSpace(
|
||||||
communityUuid,
|
communityUuid,
|
||||||
spaceUuid,
|
spaceUuid,
|
||||||
|
projectUuid,
|
||||||
);
|
);
|
||||||
|
|
||||||
const scenes = await this.sceneSevice.findScenesBySpace(
|
const scenes = await this.sceneSevice.findScenesBySpace(
|
||||||
|
Reference in New Issue
Block a user