remover await innecesario

This commit is contained in:
Eduardo Quiros 2022-08-21 07:12:29 -06:00
parent de69d9f4ab
commit c50fbbeaf8
No known key found for this signature in database
GPG Key ID: B77F36C3F12720B4
1 changed files with 3 additions and 5 deletions

View File

@ -222,11 +222,9 @@ export class UsersService {
const pattern = { cmd: 'findOneCommunity' }
const payload = { _id: community_id }
let callback = await this.clientCommunityApp
let callback = this.clientCommunityApp
.send<string>(pattern, payload)
.pipe(
map((response: string) => ({ response }))
)
.pipe( map((response: string) => ({ response })))
const finalValue = await lastValueFrom(callback);
const response = finalValue['response'];
const houses = response['houses'];