Fixed google maps bug, changed size, gardenSize, and price colum names, fixed bug with query review not showing default values

This commit is contained in:
Nedim Uka
2019-05-30 10:43:47 +02:00
parent a0f2b044b2
commit 08a94ca4f8
8 changed files with 51 additions and 51 deletions

View File

@@ -3,14 +3,14 @@ const { sizes, getRealEstateTypeEnum } = require('../helpers/enums');
const getSize = (req,res) => {
const rangeFrom = {
min : 0,
min : 10,
max : 250,
value : 0,
step : 10
}
const rangeTo = {
min : 0,
min : 10,
max : 250,
value : 50,
step : 10
@@ -27,8 +27,8 @@ const postSize = async (req, res) => {
const nextStep = realEstateType && realEstateType.hasGardenSize ? 'okucnica' : 'cijena';
const nextStepPage = req.query.nextStep || nextStep;
const nextStepUrl = `/${nextStepPage}/${request.uniqueId}`;
request.size = req.body.from;
request.sizeRange = req.body.to;
request.sizeMin = req.body.from;
request.sizeMax = req.body.to;
await request.save();
res.redirect(nextStepUrl);