Changed dropzone - url WiP.

This commit is contained in:
Naida Vatric
2020-03-11 22:32:10 +01:00
parent 5066c2fa70
commit a7148ba6c3
9 changed files with 179 additions and 174 deletions

View File

@@ -182,6 +182,9 @@ const postPublishInputs = async (req, res) => {
const nextStepPage = req.query.nextStep || "/uspjesnaobjava";
//Request body
console.log("Body:", req.body);
const balcony = req.body.balcony === "on";
const elevator = req.body.elevator === "on";
const newBuilding = req.body.newBuilding === "on";
@@ -243,6 +246,9 @@ const postPublishInputs = async (req, res) => {
//Contact email saved in other table
const contactEmail = req.body.email || "";
const imageUrls = req.body.imageUrls.split("|") || [];
console.log(imageUrls);
realEstate.balcony = balcony;
realEstate.elevator = elevator;
realEstate.newBuilding = newBuilding;