This commit is contained in:
parent
079e439bf0
commit
d7072e64cb
|
@ -74,6 +74,11 @@ export class UsersController {
|
||||||
return this.userService.update(guard.id, guard);
|
return this.userService.update(guard.id, guard);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@MessagePattern({ cmd: 'updateAdminCommunity' })
|
||||||
|
updateAdminCommunity(@Payload() user: UserDocument) {
|
||||||
|
return this.userService.update(user._id, user);
|
||||||
|
}
|
||||||
|
|
||||||
@MessagePattern({ cmd: 'removeUser' })
|
@MessagePattern({ cmd: 'removeUser' })
|
||||||
remove(@Payload() id: string) {
|
remove(@Payload() id: string) {
|
||||||
let dni = id['dni'];
|
let dni = id['dni'];
|
||||||
|
|
Loading…
Reference in New Issue