apply prettier on all files
This commit is contained in:
@@ -1,32 +1,30 @@
|
||||
const { currentRERequest } = require('../helpers/url');
|
||||
const { currentRERequest } = require("../helpers/url");
|
||||
|
||||
const getPrice = (req,res) => {
|
||||
const getPrice = (req, res) => {
|
||||
const title = "Koja Vam okvirna cijena odgovara ?";
|
||||
|
||||
const title = "Koja Vam okvirna cijena odgovara ?"
|
||||
|
||||
const unit = " KM"
|
||||
const unit = " KM";
|
||||
const rangeFrom = {
|
||||
min : 1000,
|
||||
max : 250000,
|
||||
value : 0,
|
||||
step : 1000
|
||||
}
|
||||
min: 1000,
|
||||
max: 250000,
|
||||
value: 0,
|
||||
step: 1000
|
||||
};
|
||||
|
||||
const rangeTo = {
|
||||
min : 1000,
|
||||
max : 250000,
|
||||
value : 50000,
|
||||
step : 1000
|
||||
}
|
||||
min: 1000,
|
||||
max: 250000,
|
||||
value: 50000,
|
||||
step: 1000
|
||||
};
|
||||
|
||||
|
||||
res.render('price', {rangeFrom, rangeTo, unit, title });
|
||||
res.render("price", { rangeFrom, rangeTo, unit, title });
|
||||
};
|
||||
|
||||
const postPrice = async (req, res) => {
|
||||
const request = await currentRERequest(req);
|
||||
|
||||
const nextStepPage = req.query.nextStep || 'pregled';
|
||||
const nextStepPage = req.query.nextStep || "pregled";
|
||||
const nextStepUrl = `/${nextStepPage}/${request.uniqueId}`;
|
||||
|
||||
request.priceMin = req.body.from;
|
||||
|
||||
Reference in New Issue
Block a user