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