mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-14 18:05:48 +00:00
finished add community data in scene and automation
This commit is contained in:
@ -238,7 +238,7 @@ export class AutomationService {
|
||||
},
|
||||
disabled: false,
|
||||
},
|
||||
relations: ['space'],
|
||||
relations: ['space', 'space.community'],
|
||||
});
|
||||
|
||||
// Safe fetch function to handle individual automation fetching
|
||||
@ -262,6 +262,8 @@ export class AutomationService {
|
||||
type: AUTOMATION_TYPE,
|
||||
spaceId: automation.space.uuid,
|
||||
spaceName: automation.space.spaceName,
|
||||
communityName: automation.space.community.name,
|
||||
communityId: automation.space.community.uuid,
|
||||
};
|
||||
} catch (error) {
|
||||
console.warn(
|
||||
|
Reference in New Issue
Block a user