use correct format for new tenant

This commit is contained in:
Eduardo Quiros 2022-08-03 21:54:57 -06:00
parent c5bfd00350
commit b16e8623de
No known key found for this signature in database
GPG Key ID: B77F36C3F12720B4
1 changed files with 14 additions and 4 deletions

View File

@ -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', {