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

View File

@ -197,7 +197,7 @@ export class UsersService {
async deleteTenant(id: string) { async deleteTenant(id: string) {
return this.userModel.findOneAndUpdate({ _id: id }, { status: '-1' }, { return this.userModel.findOneAndUpdate({ _id: id }, { status: '-1' }, {
new: true, new: true,
}); });
} }
@ -223,8 +223,8 @@ export class UsersService {
const payload = { _id: community_id } const payload = { _id: community_id }
let callback = this.clientCommunityApp let callback = this.clientCommunityApp
.send<string>(pattern, payload) .send<string>(pattern, payload)
.pipe( map((response: string) => ({ response }))) .pipe(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'];