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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user