agregar anotaciones de tipo

This commit is contained in:
Eduardo Quiros 2022-08-21 07:26:08 -06:00
parent a3936c5fdc
commit 8db2845bd5
No known key found for this signature in database
GPG Key ID: B77F36C3F12720B4
1 changed files with 2 additions and 2 deletions

View File

@ -218,7 +218,7 @@ export class UsersService {
});
}
async findNumHouseTenant(community_id: string, tenant_id: string) {
async findNumHouseTenant(community_id: string, tenant_id: string): Promise<string> {
const pattern = { cmd: 'findOneCommunity' }
const payload = { _id: community_id }
@ -229,7 +229,7 @@ export class UsersService {
const response = finalValue['response'];
const houses = response['houses'];
let num_house = "";
await houses.forEach(async house => {
await houses.forEach(async (house: { [x: string]: string; }) => {
if (house['tenant_id'] !== undefined) {
if (house['tenant_id'] === tenant_id) {
num_house = house['number_house'];