From d7072e64cbb38ef6b71a68300ed1adb8bb4865e8 Mon Sep 17 00:00:00 2001 From: Mariela Date: Mon, 22 Aug 2022 17:58:28 -0600 Subject: [PATCH] 3 --- servicio-usuarios/src/users/users.controller.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/servicio-usuarios/src/users/users.controller.ts b/servicio-usuarios/src/users/users.controller.ts index 05c13169..775ca4f0 100644 --- a/servicio-usuarios/src/users/users.controller.ts +++ b/servicio-usuarios/src/users/users.controller.ts @@ -74,6 +74,11 @@ export class UsersController { return this.userService.update(guard.id, guard); } + @MessagePattern({ cmd: 'updateAdminCommunity' }) + updateAdminCommunity(@Payload() user: UserDocument) { + return this.userService.update(user._id, user); + } + @MessagePattern({ cmd: 'removeUser' }) remove(@Payload() id: string) { let dni = id['dni'];