change column name from 'city' to 'region'

This commit is contained in:
Bilal Catic
2019-05-17 00:33:10 +02:00
parent 42505a7089
commit 4309bc709d
7 changed files with 49 additions and 30 deletions

View File

@@ -3,7 +3,7 @@ const { getMunicipalitiesForRegion } = require('../helpers/codes');
const getMunicipality = async (req,res) => {
let request = await currentRERequest(req);
const municipalities = getMunicipalitiesForRegion(request.city);
const municipalities = getMunicipalitiesForRegion(request.region);
const nextStep = req.query.nextStep || '/';
res.render('municipality', {
nextStep,