remover await innecesario
This commit is contained in:
parent
de69d9f4ab
commit
c50fbbeaf8
|
@ -222,11 +222,9 @@ export class UsersService {
|
||||||
const pattern = { cmd: 'findOneCommunity' }
|
const pattern = { cmd: 'findOneCommunity' }
|
||||||
const payload = { _id: community_id }
|
const payload = { _id: community_id }
|
||||||
|
|
||||||
let callback = await this.clientCommunityApp
|
let callback = this.clientCommunityApp
|
||||||
.send<string>(pattern, payload)
|
.send<string>(pattern, payload)
|
||||||
.pipe(
|
.pipe( map((response: string) => ({ response })))
|
||||||
map((response: string) => ({ response }))
|
|
||||||
)
|
|
||||||
const finalValue = await lastValueFrom(callback);
|
const finalValue = await lastValueFrom(callback);
|
||||||
const response = finalValue['response'];
|
const response = finalValue['response'];
|
||||||
const houses = response['houses'];
|
const houses = response['houses'];
|
||||||
|
|
Loading…
Reference in New Issue