client.query(query.overIndustry)
.then(res => {
console.log(res.rows);
console.log('2');
return res;
})
.then(res=> console.log(res.rows))
})
router.get('/', function(req, res, next) {
var json={};
json.industry = [];
pool.query(query.getIndustryNoReq).then((res) => {
for (var i = 0; i < res.rows.length; i++)
json.industry.push(res.rows[i]);
console.log("Запрос 1")
next();
})