From c50fbbeaf8f19676e77f91ecc668984bba9be222 Mon Sep 17 00:00:00 2001 From: Eduardo Quiros Date: Sun, 21 Aug 2022 07:12:29 -0600 Subject: [PATCH] remover await innecesario --- servicio-usuarios/src/users/users.service.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/servicio-usuarios/src/users/users.service.ts b/servicio-usuarios/src/users/users.service.ts index cbe1689a..81f84a40 100644 --- a/servicio-usuarios/src/users/users.service.ts +++ b/servicio-usuarios/src/users/users.service.ts @@ -222,11 +222,9 @@ export class UsersService { const pattern = { cmd: 'findOneCommunity' } const payload = { _id: community_id } - let callback = await this.clientCommunityApp - .send(pattern, payload) - .pipe( - map((response: string) => ({ response })) - ) + let callback = this.clientCommunityApp + .send(pattern, payload) + .pipe( map((response: string) => ({ response }))) const finalValue = await lastValueFrom(callback); const response = finalValue['response']; const houses = response['houses'];