This commit is contained in:
Mariela 2022-08-22 17:58:28 -06:00
parent 079e439bf0
commit d7072e64cb
1 changed files with 5 additions and 0 deletions

View File

@ -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'];