diff --git a/api-gateway/src/app.controller.ts b/api-gateway/src/app.controller.ts index 51a8507a..20a6ee27 100644 --- a/api-gateway/src/app.controller.ts +++ b/api-gateway/src/app.controller.ts @@ -367,8 +367,4 @@ export class AppController { html(@Body('email') email: string, @Body('name') name: string) { return this.appService.html(email, name); } - - - - } diff --git a/servicio-reportes/src/reports/reports.service.ts b/servicio-reportes/src/reports/reports.service.ts index 1197d840..37a68957 100644 --- a/servicio-reportes/src/reports/reports.service.ts +++ b/servicio-reportes/src/reports/reports.service.ts @@ -9,9 +9,8 @@ import { map } from 'rxjs/operators'; export class ReportsService { constructor( @InjectModel(Report.name) - private readonly reportModel: Model, - ) // - {} + private readonly reportModel: Model, // + ) {} async create(report: ReportDocument): Promise { return this.reportModel.create(report); diff --git a/web-ui/web-react/src/components/Inquilinos.js b/web-ui/web-react/src/components/Inquilinos.js index 280cf83a..cecf52c8 100644 --- a/web-ui/web-react/src/components/Inquilinos.js +++ b/web-ui/web-react/src/components/Inquilinos.js @@ -20,8 +20,13 @@ const Inquilinos = () => { }, []); function registrarInquilino() { let data = { + dni: document.getElementById('identificacion').value, + name: document.getElementById('nombre').value, + last_name: document.getElementById('apellidos').value, + phone: document.getElementById('telefono').value, email: document.getElementById('correo_electronico').value, community_id: document.getElementById('numero_vivienda').value, + password: document.getElementById('password').value, user_type: '3', status: '1', }; @@ -48,7 +53,23 @@ const Inquilinos = () => {
Registrar Inquilino
-
+
+ + +
+
+ + +
+
+ + +
+
{ id="correo_electronico" />
-
+
{ options={communitiesList} />
+
+ + +