mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-11-26 17:24:54 +00:00
api endpoints for space user controller base root has been mapped from project
This commit is contained in:
@ -26,10 +26,7 @@ export class SpaceUserController {
|
||||
async associateUserToSpace(
|
||||
@Param() params: UserSpaceParam,
|
||||
): Promise<BaseResponseDto> {
|
||||
return this.spaceUserService.associateUserToSpace(
|
||||
params.userUuid,
|
||||
params.spaceUuid,
|
||||
);
|
||||
return this.spaceUserService.associateUserToSpace(params);
|
||||
}
|
||||
|
||||
@ApiBearerAuth()
|
||||
@ -43,9 +40,6 @@ export class SpaceUserController {
|
||||
async disassociateUserFromSpace(
|
||||
@Param() params: UserSpaceParam,
|
||||
): Promise<BaseResponseDto> {
|
||||
return this.spaceUserService.disassociateUserFromSpace(
|
||||
params.userUuid,
|
||||
params.spaceUuid,
|
||||
);
|
||||
return this.spaceUserService.disassociateUserFromSpace(params);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user