mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-11-26 22:04:53 +00:00
Added subspace entity
This commit is contained in:
@ -10,7 +10,7 @@ export class UserSpaceService {
|
||||
async getSpacesForUser(userUuid: string): Promise<BaseResponseDto> {
|
||||
const userSpaces = await this.userSpaceRepository.find({
|
||||
where: { user: { uuid: userUuid } },
|
||||
relations: ['space'],
|
||||
relations: ['space', 'space.community'],
|
||||
});
|
||||
|
||||
if (!userSpaces || userSpaces.length === 0) {
|
||||
@ -20,7 +20,6 @@ export class UserSpaceService {
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
return new SuccessResponseDto({
|
||||
data: userSpaces,
|
||||
message: `Spaces for user ${userUuid} retrieved successfully`,
|
||||
|
||||
Reference in New Issue
Block a user