arreglar correo de registro
This commit is contained in:
parent
c8da611700
commit
9e7ac1d91f
|
@ -83,29 +83,16 @@ export class CommunitiesService {
|
|||
|
||||
async saveTenant(id: string, number_house: string, ptenant_id: string) {
|
||||
let community = await this.findOne(id);
|
||||
|
||||
console.log(ptenant_id)
|
||||
|
||||
await community.houses.map(house => {
|
||||
if (house.number_house == number_house) {
|
||||
if (house.tenants) {
|
||||
console.log(house.tenants.tenant_id + '1')
|
||||
|
||||
house.tenants.tenant_id = ptenant_id
|
||||
console.log(house.tenants.tenant_id + '1')
|
||||
console.log(house.tenants + '1')
|
||||
} else {
|
||||
let tenant = new Tenant()
|
||||
|
||||
tenant.tenant_id = ptenant_id;
|
||||
console.log(tenant)
|
||||
|
||||
house.tenants = tenant;
|
||||
console.log(house.tenants + '2')
|
||||
|
||||
}
|
||||
console.log(house.tenants + '3')
|
||||
|
||||
house.state = "ocupada"
|
||||
}
|
||||
return house;
|
||||
|
|
|
@ -362,7 +362,7 @@
|
|||
<tr>
|
||||
|
||||
<td class="logo" style="text-align: right;">
|
||||
<img src="cid:logoLatoikia" alt="Logo Katoikia"
|
||||
<img src="cid:logoKatoikia" alt="Logo Katoikia"
|
||||
style="width: 60px; max-width: 60px; height: auto; margin: auto; display: block; float: right;">
|
||||
</td>
|
||||
<td class="logo" style="text-align: left;">
|
||||
|
@ -393,7 +393,7 @@
|
|||
{{date_entry}}</h4>
|
||||
</div>
|
||||
<div class="text" style="padding: 0 4em; text-align: left;">
|
||||
<p>Fue asignado en la comunidad {{community_name}} en la vivienda # {{number_house}}</p>
|
||||
<p>Fue asignado en la comunidad "{{community_name}}" en la vivienda #{{number_house}}</p>
|
||||
|
||||
</div>
|
||||
<div class="text" style="padding: 0 4em; text-align: left;">
|
||||
|
|
|
@ -29,11 +29,7 @@ export class UsersService {
|
|||
let passwordEncriptada = Md5.init(user.password);
|
||||
user.password = passwordEncriptada;
|
||||
let userCreated = await this.userModel.create(user);
|
||||
console.log(await userCreated);
|
||||
let callback = await this.saveTenantNumHouse(user.community_id, user.number_house, userCreated['_id']);
|
||||
|
||||
const finalValue = await lastValueFrom(callback);
|
||||
const response = await finalValue['response'];
|
||||
await this.saveTenantNumHouse(user.community_id, user.number_house, userCreated['_id']);
|
||||
|
||||
let community = await this.findCommunity(user.community_id);
|
||||
user.community_id = community['name'];
|
||||
|
|
Loading…
Reference in New Issue