use correct format for new tenant
This commit is contained in:
parent
c5bfd00350
commit
b16e8623de
|
@ -103,10 +103,20 @@ const Inquilinos = () => {
|
||||||
|
|
||||||
function registrarInquilino() {
|
function registrarInquilino() {
|
||||||
let data = {
|
let data = {
|
||||||
email: document.getElementById('correo_electronico').value,
|
_id: null,
|
||||||
community_id: document.getElementById('numero_vivienda').value,
|
dni: "",
|
||||||
user_type: '3',
|
name: "",
|
||||||
status: '1',
|
last_name: "",
|
||||||
|
email: document.getElementById("correo_electronico").value,
|
||||||
|
phone: "",
|
||||||
|
password: "",
|
||||||
|
community_id: document.getElementById("numero_vivienda").value,
|
||||||
|
community_name: "",
|
||||||
|
number_house: "Sin número de vivienda",
|
||||||
|
date_entry: new Date(),
|
||||||
|
user_type: "3",
|
||||||
|
status: "1",
|
||||||
|
status_text: "",
|
||||||
};
|
};
|
||||||
|
|
||||||
fetch('http://localhost:3000/api/createUser', {
|
fetch('http://localhost:3000/api/createUser', {
|
||||||
|
|
Loading…
Reference in New Issue