use enums from enum file

This commit is contained in:
Bilal Catic
2019-05-19 02:14:20 +02:00
parent c652a306db
commit 53585d3ae1
9 changed files with 47 additions and 37 deletions

View File

@@ -1,10 +1,5 @@
const db = require('../models/index');
const realEstateTypes = [
{ ime: "Kuća", id: "kuca" },
{ ime: "Stan", id: "stan" },
{ ime: "Vikendica", id: "vikendica" }
];
const { realEstateTypes } = require('../helpers/enums');
const getRealEstateTypes = (req,res) => {
const nextStep = req.query.nextStep;