Real Estate Slider

This commit is contained in:
Nedim Uka
2019-05-28 16:46:38 +02:00
parent e969a8dc8b
commit de3c76315e
3 changed files with 42 additions and 23 deletions

View File

@@ -13,8 +13,7 @@ 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.size;
request.size = req.body.from + "-" + req.body.to ;
await request.save();
res.redirect(nextStepUrl);