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

@@ -2,14 +2,14 @@ const { currentRERequest } = require('../helpers/url');
const getPrice = (req,res) => {
const rangeFrom = {
min : 0,
min : 1000,
max : 250000,
value : 0,
step : 1000
}
const rangeTo = {
min : 0,
min : 1000,
max : 250000,
value : 50000,
step : 1000
@@ -25,8 +25,8 @@ const postPrice = async (req, res) => {
const nextStepPage = req.query.nextStep || 'pregled';
const nextStepUrl = `/${nextStepPage}/${request.uniqueId}`;
request.price = req.body.from;
request.priceRange = req.body.to;
request.priceMin = req.body.from;
request.priceMax = req.body.to;
await request.save();
res.redirect(nextStepUrl);